RFR(S): 8163994: Nightly test crashed in jvmtiAllocate

Dmitry Samersoff dmitry.samersoff at oracle.com
Fri Aug 26 11:00:15 UTC 2016


Please review the fix.



Under some circumstances, when JVMTI_ERROR_WRONG_PHASE(112) is received,
jvmtiAllocate could be called after call to cbEarlyVMDeath.

cbEarlyVMDeath set gdata->jvmti to NULL, so jvmtiAllocate crashes.

The problem appears only once in nightly testing and I was not able to
reproduce it locally.


Guard added to jvmtiAllocate to get meaningful error message instead of

These fix doesn't fix root cause - JVMTI_ERROR_WRONG_PHASE problem is
going to be addressed under JDK-8134103.


Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.

More information about the hotspot-runtime-dev mailing list