< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace005.java

Print this page
rev 56807 : [mq]: 8232684-v2

@@ -385,11 +385,11 @@
         } else if (currentDepth > 1 && !isNativeResolved)
             isNativeResolved = true;
 
         if (strace005.DEPTH - currentDepth > 0) {
             try {
-                yield();
+                Thread.yield();
                 recursiveMethod2();
             } catch (StackOverflowError e) {
                 // ignore this exception
             }
         }
< prev index next >