mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8047290: Make Mutex::_no_safepoint_check_flag locks verify that this lock never checks for safepoint
Ensure consistent safepoint checking in Mutex/Monitor locking methods. Reviewed-by: dholmes, dcubed, coleenp
This commit is contained in:
parent
bb30bd7e0a
commit
1d76295d70
32 changed files with 447 additions and 134 deletions
|
@ -391,7 +391,8 @@ int VM_Exit::wait_for_threads_in_native_to_block() {
|
|||
assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint already");
|
||||
|
||||
Thread * thr_cur = ThreadLocalStorage::get_thread_slow();
|
||||
Monitor timer(Mutex::leaf, "VM_Exit timer", true);
|
||||
Monitor timer(Mutex::leaf, "VM_Exit timer", true,
|
||||
Monitor::_safepoint_check_never);
|
||||
|
||||
// Compiler threads need longer wait because they can access VM data directly
|
||||
// while in native. If they are active and some structures being used are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue