diff src/share/vm/runtime/thread.hpp @ 5928:541c4a5e7b88

7150390: JFR test crashed on assert(_jni_lock_count == count) failed: must be equal Reviewed-by: dholmes, minqi, kvn, coleenp
author never
date Tue, 06 Mar 2012 16:32:23 -0800
parents 0382d2b469b2
children d2a62e0f25eb
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp	Mon Mar 05 18:10:31 2012 -0800
+++ b/src/share/vm/runtime/thread.hpp	Tue Mar 06 16:32:23 2012 -0800
@@ -268,6 +268,15 @@
   ObjectMonitor* omInUseList;                   // SLL to track monitors in circulation
   int omInUseCount;                             // length of omInUseList
 
+#ifdef ASSERT
+ private:
+  bool _visited_for_critical_count;
+
+ public:
+  void set_visited_for_critical_count(bool z) { _visited_for_critical_count = z; }
+  bool was_visited_for_critical_count() const   { return _visited_for_critical_count; }
+#endif
+
  public:
   enum {
     is_definitely_current_thread = true