8255596: Mutex safepoint checking options and flags should be scoped enums

Reviewed-by: tschatzl, rehn
This commit is contained in:
Kim Barrett 2020-11-02 10:16:40 +00:00
parent d05df7c17a
commit 69f5235e16
3 changed files with 21 additions and 11 deletions

View file

@ -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();
}