hotspot/src/share/vm/prims/jvmtiExport.cpp
changeset 9405 d2e9ee78c3c1
parent 8475 c2b97a27943a
child 10969 3ecf25293e5a
--- a/hotspot/src/share/vm/prims/jvmtiExport.cpp	Wed Apr 27 06:20:00 2011 -0700
+++ b/hotspot/src/share/vm/prims/jvmtiExport.cpp	Thu Apr 28 08:24:46 2011 -0700
@@ -1804,6 +1804,8 @@
 }
 
 void JvmtiExport::post_dynamic_code_generated_internal(const char *name, const void *code_begin, const void *code_end) {
+  assert(name != NULL && name[0] != '\0', "sanity check");
+
   JavaThread* thread = JavaThread::current();
   // In theory everyone coming thru here is in_vm but we need to be certain
   // because a callee will do a vm->native transition