8210848: Obsolete SyncKnobs

Reviewed-by: redestad, coleenp, dholmes, dcubed
This commit is contained in:
Mikael Vidstedt 2018-09-24 22:12:07 -07:00
parent 3edf95fc44
commit 25295df059
9 changed files with 91 additions and 532 deletions

View file

@ -1953,13 +1953,9 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
// between JNI-acquired and regular Java monitors. We can only see
// regular Java monitors here if monitor enter-exit matching is broken.
//
// Optionally release any monitors for regular JavaThread exits. This
// is provided as a work around for any bugs in monitor enter-exit
// matching. This can be expensive so it is not enabled by default.
//
// ensure_join() ignores IllegalThreadStateExceptions, and so does
// ObjectSynchronizer::release_monitors_owned_by_thread().
if (exit_type == jni_detach || ObjectMonitor::Knob_ExitRelease) {
if (exit_type == jni_detach) {
// Sanity check even though JNI DetachCurrentThread() would have
// returned JNI_ERR if there was a Java frame. JavaThread exit
// should be done executing Java code by the time we get here.