equal
deleted
inserted
replaced
92 // is_active. |
92 // is_active. |
93 return needs_gc() && is_active_internal(); |
93 return needs_gc() && is_active_internal(); |
94 } |
94 } |
95 |
95 |
96 // In debug mode track the locking state at all times |
96 // In debug mode track the locking state at all times |
97 static void increment_debug_jni_lock_count() { |
97 static void increment_debug_jni_lock_count() NOT_DEBUG_RETURN; |
98 #ifdef ASSERT |
98 static void decrement_debug_jni_lock_count() NOT_DEBUG_RETURN; |
99 assert(_debug_jni_lock_count >= 0, "bad value"); |
|
100 Atomic::inc(&_debug_jni_lock_count); |
|
101 #endif |
|
102 } |
|
103 static void decrement_debug_jni_lock_count() { |
|
104 #ifdef ASSERT |
|
105 assert(_debug_jni_lock_count > 0, "bad value"); |
|
106 Atomic::dec(&_debug_jni_lock_count); |
|
107 #endif |
|
108 } |
|
109 |
99 |
110 // Set the current lock count |
100 // Set the current lock count |
111 static void set_jni_lock_count(int count) { |
101 static void set_jni_lock_count(int count) { |
112 _jni_lock_count = count; |
102 _jni_lock_count = count; |
113 verify_critical_count(); |
103 verify_critical_count(); |