8202853: NotifyCount is not initialized
Remove NotifyCount Reviewed-by: jiangli
This commit is contained in:
parent
112a9fe7f6
commit
6216182dd1
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2018, 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
|
||||
@ -681,7 +681,6 @@ bool Monitor::notify() {
|
||||
assert(_owner == Thread::current(), "invariant");
|
||||
assert(ILocked(), "invariant");
|
||||
if (_WaitSet == NULL) return true;
|
||||
NotifyCount++;
|
||||
|
||||
// Transfer one thread from the WaitSet to the EntryList or cxq.
|
||||
// Currently we just unlink the head of the WaitSet and prepend to the cxq.
|
||||
|
@ -130,7 +130,6 @@ class Monitor : public CHeapObj<mtInternal> {
|
||||
volatile intptr_t _WaitLock [1] ; // Protects _WaitSet
|
||||
ParkEvent * volatile _WaitSet ; // LL of ParkEvents
|
||||
volatile bool _snuck; // Used for sneaky locking (evil).
|
||||
int NotifyCount ; // diagnostic assist
|
||||
char _name[MONITOR_NAME_LEN]; // Name of mutex
|
||||
|
||||
// Debugging fields for naming, deadlock detection, etc. (some only used in debug mode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user