8300811: jdb ThreadStartRequest and ThreadDeathRequest should use SUSPEND_NONE instead of SUSPEND_ALL

Reviewed-by: alanb, sspitsyn
This commit is contained in:
Chris Plummer 2023-02-01 18:59:09 +00:00
parent 24ff3da054
commit 9952108734

View File

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * 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.*;
import com.sun.jdi.connect.*; import com.sun.jdi.connect.*;
import com.sun.jdi.request.EventRequest;
import com.sun.jdi.request.EventRequestManager; import com.sun.jdi.request.EventRequestManager;
import com.sun.jdi.request.ThreadStartRequest; import com.sun.jdi.request.ThreadStartRequest;
import com.sun.jdi.request.ThreadDeathRequest; import com.sun.jdi.request.ThreadDeathRequest;
@ -469,6 +470,8 @@ class VMConnection {
ThreadStartRequest tsr = erm.createThreadStartRequest(); ThreadStartRequest tsr = erm.createThreadStartRequest();
ThreadDeathRequest tdr = erm.createThreadDeathRequest(); ThreadDeathRequest tdr = erm.createThreadDeathRequest();
tsr.setSuspendPolicy(EventRequest.SUSPEND_NONE);
tdr.setSuspendPolicy(EventRequest.SUSPEND_NONE);
if (!trackVthreads) { if (!trackVthreads) {
tsr.addPlatformThreadsOnlyFilter(); tsr.addPlatformThreadsOnlyFilter();
tdr.addPlatformThreadsOnlyFilter(); tdr.addPlatformThreadsOnlyFilter();