From 995210873497eb2400b7672096e6f3cac7fde9a6 Mon Sep 17 00:00:00 2001 From: Chris Plummer Date: Wed, 1 Feb 2023 18:59:09 +0000 Subject: [PATCH] 8300811: jdb ThreadStartRequest and ThreadDeathRequest should use SUSPEND_NONE instead of SUSPEND_ALL Reviewed-by: alanb, sspitsyn --- .../com/sun/tools/example/debug/tty/VMConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/VMConnection.java b/src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/VMConnection.java index 7f4ae6939cb..9f46999cc28 100644 --- a/src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/VMConnection.java +++ b/src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/VMConnection.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2023, 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 @@ -36,6 +36,7 @@ package com.sun.tools.example.debug.tty; import com.sun.jdi.*; import com.sun.jdi.connect.*; +import com.sun.jdi.request.EventRequest; import com.sun.jdi.request.EventRequestManager; import com.sun.jdi.request.ThreadStartRequest; import com.sun.jdi.request.ThreadDeathRequest; @@ -469,6 +470,8 @@ class VMConnection { ThreadStartRequest tsr = erm.createThreadStartRequest(); ThreadDeathRequest tdr = erm.createThreadDeathRequest(); + tsr.setSuspendPolicy(EventRequest.SUSPEND_NONE); + tdr.setSuspendPolicy(EventRequest.SUSPEND_NONE); if (!trackVthreads) { tsr.addPlatformThreadsOnlyFilter(); tdr.addPlatformThreadsOnlyFilter();