< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/share/locks/LockingThread.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -485,12 +485,12 @@
     }
 
     // calculate stack depth at which monitor was acquired
     int expectedDepth() {
         // for each monitor call 2 methods: createStackFrame() and method which acquire monitor
-        // + when stack creation is finished call 3 methods: createStackFrame()->doWait()->sleep()
-        return (stackFramesDescription.size() - currentIndex) * 2 + 3;
+        // + when stack creation is finished call 4 methods: createStackFrame()->doWait()->sleep()->sleep0()
+        return (stackFramesDescription.size() - currentIndex) * 2 + 4;
     }
 
     private native void nativeJNIMonitorEnter(Object object);
 
     synchronized void synchronizedMethod() {
< prev index next >