From eae1f59da966f68c8e11547aec123741c1d21fef Mon Sep 17 00:00:00 2001 From: Chris Plummer Date: Wed, 31 May 2023 17:38:18 +0000 Subject: [PATCH] 8309159: Some minor comment and code cleanup in jdk/com/sun/jdi/PopFramesTest.java Reviewed-by: sspitsyn, lmesnik --- test/jdk/com/sun/jdi/PopFramesTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jdk/com/sun/jdi/PopFramesTest.java b/test/jdk/com/sun/jdi/PopFramesTest.java index 1fc45e2a191..9dcfb48b41f 100644 --- a/test/jdk/com/sun/jdi/PopFramesTest.java +++ b/test/jdk/com/sun/jdi/PopFramesTest.java @@ -58,14 +58,15 @@ import java.util.*; * NONATIVE: there is no native frame (purposefully) present in the stack. * * In all cases the thread is suspended and errors such as IllegalArgumentException - * and InvalidStackFrameException should not happen. The popFrames() calls should + * and InvalidStackFrameException should not happen. The popFrames() calls should * either pass, or produce OpaqueFrameException or NativeMethodException. * * Call stacks for each test mode (and expected result): * - Note in all cases the popMethod() frame is the frame passed to popFrames(). * - Note that Thread.sleep() usually results in the native Thread.sleep0() frame - * being at the top of the stack. However, for a mounted virtual thread - * it does not result in any native frames due to how the VM parks virtual threads. + * being at the top of the stack. However, for a mounted virtual thread that is + * not pinned, it does not result in any native frames due to how the VM + * parks non-pinned virtual threads. * * SLEEP_NATIVE (NativeMethodException): * Thread.sleep() + methods called by Thread.sleep() @@ -266,7 +267,6 @@ public class PopFramesTest extends TestScaffold { protected void runTests() throws Exception { BreakpointEvent bpe = startTo("PopFramesTestTarg", "loopOrSleep", "()V"); - ClassType targetClass = (ClassType)bpe.location().declaringType(); ThreadReference mainThread = bpe.thread(); // Resume main thread until it is in Thread.sleep() or the infinite loop.