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:
Tom Rodriguez 2012-03-06 16:32:23 -08:00
parent 36efb40d10
commit 9a93f60e34
3 changed files with 29 additions and 5 deletions

View file

@ -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