comparison src/share/vm/prims/jvmtiEnvBase.cpp @ 371:dbec32712472

6753795: HotSpot crash in strlen() when JVMTI is used Summary: test for null instead of strlen Reviewed-by: rasbold
author never
date Tue, 30 Sep 2008 11:56:01 -0700
parents a61af66fc99e
children ad8c8ca4ab0f
comparison
equal deleted inserted replaced
370:885fe0f95828 371:dbec32712472
119 _magic = JVMTI_MAGIC; 119 _magic = JVMTI_MAGIC;
120 120
121 JvmtiEventController::env_initialize((JvmtiEnv*)this); 121 JvmtiEventController::env_initialize((JvmtiEnv*)this);
122 122
123 #ifdef JVMTI_TRACE 123 #ifdef JVMTI_TRACE
124 _jvmti_external.functions = strlen(TraceJVMTI)? &jvmtiTrace_Interface : &jvmti_Interface; 124 _jvmti_external.functions = TraceJVMTI != NULL ? &jvmtiTrace_Interface : &jvmti_Interface;
125 #else 125 #else
126 _jvmti_external.functions = &jvmti_Interface; 126 _jvmti_external.functions = &jvmti_Interface;
127 #endif 127 #endif
128 } 128 }
129 129