6753795: HotSpot crash in strlen() when JVMTI is used
Test for null instead of strlen Reviewed-by: rasbold
This commit is contained in:
parent
ac161a1e17
commit
d40b6daac9
@ -121,7 +121,7 @@ JvmtiEnvBase::JvmtiEnvBase() : _env_event_enable() {
|
||||
JvmtiEventController::env_initialize((JvmtiEnv*)this);
|
||||
|
||||
#ifdef JVMTI_TRACE
|
||||
_jvmti_external.functions = strlen(TraceJVMTI)? &jvmtiTrace_Interface : &jvmti_Interface;
|
||||
_jvmti_external.functions = TraceJVMTI != NULL ? &jvmtiTrace_Interface : &jvmti_Interface;
|
||||
#else
|
||||
_jvmti_external.functions = &jvmti_Interface;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user