8202853: NotifyCount is not initialized
authorcoleenp
Mon, 21 May 2018 17:17:24 -0400
changeset 50203 39d88709b138
parent 50202 63c65528b1fe
child 50204 3195a713e24d
8202853: NotifyCount is not initialized Summary: remove NotifyCount Reviewed-by: jiangli
src/hotspot/share/runtime/mutex.cpp
src/hotspot/share/runtime/mutex.hpp
--- a/src/hotspot/share/runtime/mutex.cpp	Mon May 21 22:59:29 2018 +0200
+++ b/src/hotspot/share/runtime/mutex.cpp	Mon May 21 17:17:24 2018 -0400
@@ -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 @@
   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.
--- a/src/hotspot/share/runtime/mutex.hpp	Mon May 21 22:59:29 2018 +0200
+++ b/src/hotspot/share/runtime/mutex.hpp	Mon May 21 17:17:24 2018 -0400
@@ -130,7 +130,6 @@
   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)