mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
Merge
This commit is contained in:
commit
539395ffbf
434 changed files with 2943 additions and 3039 deletions
|
@ -1868,13 +1868,10 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
|
|||
// 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.
|
||||
// ObjectMonitor::Knob_ExitRelease is a superset of the
|
||||
// JNIDetachReleasesMonitors option.
|
||||
//
|
||||
// ensure_join() ignores IllegalThreadStateExceptions, and so does
|
||||
// ObjectSynchronizer::release_monitors_owned_by_thread().
|
||||
if ((exit_type == jni_detach && JNIDetachReleasesMonitors) ||
|
||||
ObjectMonitor::Knob_ExitRelease) {
|
||||
if (exit_type == jni_detach || ObjectMonitor::Knob_ExitRelease) {
|
||||
// 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.
|
||||
|
@ -1941,7 +1938,7 @@ void JavaThread::initialize_queues() {
|
|||
assert(!SafepointSynchronize::is_at_safepoint(),
|
||||
"we should not be at a safepoint");
|
||||
|
||||
ObjPtrQueue& satb_queue = satb_mark_queue();
|
||||
SATBMarkQueue& satb_queue = satb_mark_queue();
|
||||
SATBMarkQueueSet& satb_queue_set = satb_mark_queue_set();
|
||||
// The SATB queue should have been constructed with its active
|
||||
// field set to false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue