mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7150390: JFR test crashed on assert(_jni_lock_count == count) failed: must be equal
Reviewed-by: dholmes, minqi, kvn, coleenp
This commit is contained in:
parent
36efb40d10
commit
9a93f60e34
3 changed files with 29 additions and 5 deletions
|
@ -268,6 +268,15 @@ class Thread: public ThreadShadow {
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue