mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -188,7 +188,8 @@ class CMSMarkStack: public CHeapObj<mtGC> {
|
|||
|
||||
public:
|
||||
CMSMarkStack():
|
||||
_par_lock(Mutex::event, "CMSMarkStack._par_lock", true),
|
||||
_par_lock(Mutex::event, "CMSMarkStack._par_lock", true,
|
||||
Monitor::_safepoint_check_never),
|
||||
_hit_limit(0),
|
||||
_failed_double(0) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue