< prev index next >

src/hotspot/share/prims/jvmtiExport.hpp

Print this page

        

@@ -163,11 +163,13 @@
 
   // GenerateEvents support to allow posting of CompiledMethodLoad and
   // DynamicCodeGenerated events for a given environment.
   friend class JvmtiCodeBlobEvents;
 
-  static void post_compiled_method_load(JvmtiEnv* env, nmethod *nm) NOT_JVMTI_RETURN;
+  static void post_compiled_method_load(JvmtiEnv* env, const jmethodID method, const jint length,
+                                        const void *code_begin, const jint map_length,
+                                        const jvmtiAddrLocationMap* map) NOT_JVMTI_RETURN;
   static void post_dynamic_code_generated(JvmtiEnv* env, const char *name, const void *code_begin,
                                           const void *code_end) NOT_JVMTI_RETURN;
 
   // This flag indicates whether RedefineClasses() has ever redefined
   // one or more classes during the lifetime of the VM. The flag should

@@ -418,11 +420,11 @@
   address _code_end;
 
  public:
   JvmtiCodeBlobDesc(const char *name, address code_begin, address code_end) {
     assert(name != NULL, "all code blobs must be named");
-    strncpy(_name, name, sizeof(_name) - 1);
+    strncpy(_name, name, sizeof(_name));
     _name[sizeof(_name)-1] = '\0';
     _code_begin = code_begin;
     _code_end = code_end;
   }
   char* name()                  { return _name; }
< prev index next >