mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8255596: Mutex safepoint checking options and flags should be scoped enums
Reviewed-by: tschatzl, rehn
This commit is contained in:
parent
d05df7c17a
commit
69f5235e16
3 changed files with 21 additions and 11 deletions
|
@ -298,7 +298,7 @@ class MutexUnlocker: StackObj {
|
|||
public:
|
||||
MutexUnlocker(Mutex* mutex, Mutex::SafepointCheckFlag flag = Mutex::_safepoint_check_flag) :
|
||||
_mutex(mutex),
|
||||
_no_safepoint_check(flag) {
|
||||
_no_safepoint_check(flag == Mutex::_no_safepoint_check_flag) {
|
||||
_mutex->unlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue