changeset 10905:4b7e2caff09c

8154064: JVMTI trace event crashes Reviewed-by: sla, stefank
author rehn
date Thu, 14 Apr 2016 11:55:28 +0200
parents 6acb563d8621
children 4a748af0d81f
files src/share/vm/prims/jvmtiExport.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiExport.cpp	Thu Apr 14 08:30:37 2016 +0200
+++ b/src/share/vm/prims/jvmtiExport.cpp	Thu Apr 14 11:55:28 2016 +0200
@@ -2260,7 +2260,7 @@
     if (env->is_enabled(JVMTI_EVENT_VM_OBJECT_ALLOC)) {
       EVT_TRACE(JVMTI_EVENT_VM_OBJECT_ALLOC, ("JVMTI [%s] Evt vmobject alloc sent %s",
                                          JvmtiTrace::safe_get_thread_name(thread),
-                                         object==NULL? "NULL" : java_lang_Class::as_Klass(object)->external_name()));
+                                         object==NULL? "NULL" : object->klass()->external_name()));
 
       JvmtiVMObjectAllocEventMark jem(thread, h());
       JvmtiJavaThreadEventTransition jet(thread);