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

@ -247,6 +247,10 @@ Thread::Thread() {
omInUseList = NULL ;
omInUseCount = 0 ;
#ifdef ASSERT
_visited_for_critical_count = false;
#endif
_SR_lock = new Monitor(Mutex::suspend_resume, "SR_lock", true);
_suspend_flags = 0;