mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8156500: Move Reference pending list into VM to prevent deadlocks
Move reference pending list and locking into VM Co-authored-by: Per Liden <per.liden@oracle.com> Reviewed-by: coleenp, dholmes, dcubed, mchung, plevart
This commit is contained in:
parent
4f55b6c7e0
commit
66706edf15
29 changed files with 133 additions and 576 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "gc/cms/concurrentMarkSweepGeneration.hpp"
|
||||
#include "gc/shared/gcCause.hpp"
|
||||
#include "gc/shared/gcId.hpp"
|
||||
#include "gc/shared/referencePendingListLocker.hpp"
|
||||
#include "gc/shared/vmGCOperations.hpp"
|
||||
#include "runtime/vm_operations.hpp"
|
||||
|
||||
|
@ -52,9 +51,6 @@
|
|||
class CMSCollector;
|
||||
|
||||
class VM_CMS_Operation: public VM_Operation {
|
||||
private:
|
||||
ReferencePendingListLocker _pending_list_locker;
|
||||
|
||||
protected:
|
||||
CMSCollector* _collector; // associated collector
|
||||
bool _prologue_succeeded; // whether doit_prologue succeeded
|
||||
|
@ -62,10 +58,6 @@ class VM_CMS_Operation: public VM_Operation {
|
|||
|
||||
bool lost_race() const;
|
||||
|
||||
// java.lang.ref.Reference support
|
||||
void acquire_pending_list_lock();
|
||||
void release_and_notify_pending_list_lock();
|
||||
|
||||
public:
|
||||
VM_CMS_Operation(CMSCollector* collector):
|
||||
_collector(collector),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue