Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v6]

2022-06-30 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added

Integrated: Merge jdk19

2022-06-30 Thread Jesper Wilhelmsson
On Thu, 30 Jun 2022 23:50:57 GMT, Jesper Wilhelmsson wrote: > Forwardport JDK 19 -> JDK 20 This pull request has now been integrated. Changeset: 918068a1 Author:Jesper Wilhelmsson URL: https://git.openjdk.org/jdk/commit/918068a115efee7d439084b6d743cab5193bd943 Stats: 4 lines

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v5]

2022-06-30 Thread Chris Plummer
On Thu, 30 Jun 2022 16:27:12 GMT, Alan Bateman wrote: >> The @run suggestion doesn't work. There are two issues. First, it does not >> trigger jtreg to use TestScaffold.main(), which is what normally happens >> when you use TEST_VM_OPTS="-Dmain.wrapper=Virtual". So the end result is >> that

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v5]

2022-06-30 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added

RFR: Merge jdk19

2022-06-30 Thread Jesper Wilhelmsson
Forwardport JDK 19 -> JDK 20 - Commit messages: - Merge remote-tracking branch 'jdk19/master' into Merge_jdk19 - 8289278: Suspend/ResumeAllVirtualThreads need both can_suspend and can_support_virtual_threads The merge commit only contains trivial merges, so no merge-specific

Re: RFR: 8198668: MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java still failing [v3]

2022-06-30 Thread Kevin Walls
> Test has been problemlisted for a long time due to intermittent failures. > > This is a difficult test as it tries to monitor usage thresholds on Memory > Pools which are outside its control. > Not just Java heap pools, where the allocation it makes may or may not affect > a particuclar pool,

Integrated: 8289440: Remove vmTestbase/nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded003 from ProblemList.txt

2022-06-30 Thread Kevin Walls
On Wed, 29 Jun 2022 09:57:29 GMT, Kevin Walls wrote: > More context in the bug, but there's no evidence that this test should still > be problemlisted. > > Adding enableVerbose in the test itself should still keep this trivial: > seeing what actually happened in a test that was once labelled

Re: RFR: 8198668: MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java still failing [v2]

2022-06-30 Thread Kevin Walls
On Tue, 28 Jun 2022 11:43:42 GMT, Kevin Walls wrote: >> Test has been problemlisted for a long time due to intermittent failures. >> >> This is a difficult test as it tries to monitor usage thresholds on Memory >> Pools which are outside its control. >> Not just Java heap pools, where the

Re: RFR: 8289440: Remove vmTestbase/nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded003 from ProblemList.txt

2022-06-30 Thread Kevin Walls
On Wed, 29 Jun 2022 09:57:29 GMT, Kevin Walls wrote: > More context in the bug, but there's no evidence that this test should still > be problemlisted. > > Adding enableVerbose in the test itself should still keep this trivial: > seeing what actually happened in a test that was once labelled

Re: RFR: 8289534: Change 'uncomplicated' hotspot runtime options

2022-06-30 Thread Coleen Phillimore
On Thu, 30 Jun 2022 18:39:58 GMT, Harold Seigel wrote: > Please review this small fix to change range constrained JVM runtime options > from 64 bits to 32 bits. This fix was tested with Mach5 tiers 1-2 on Linux, > Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64. > > Thanks, Harold

Re: RFR: 8289440: Remove vmTestbase/nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded003 from ProblemList.txt

2022-06-30 Thread Leonid Mesnik
On Wed, 29 Jun 2022 09:57:29 GMT, Kevin Walls wrote: > More context in the bug, but there's no evidence that this test should still > be problemlisted. > > Adding enableVerbose in the test itself should still keep this trivial: > seeing what actually happened in a test that was once labelled

Re: RFR: 8198668: MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java still failing [v2]

2022-06-30 Thread Leonid Mesnik
On Tue, 28 Jun 2022 11:43:42 GMT, Kevin Walls wrote: >> Test has been problemlisted for a long time due to intermittent failures. >> >> This is a difficult test as it tries to monitor usage thresholds on Memory >> Pools which are outside its control. >> Not just Java heap pools, where the

RFR: 8289534: Change 'uncomplicated' hotspot runtime options

2022-06-30 Thread Harold Seigel
Please review this small fix to change range constrained JVM runtime options from 64 bits to 32 bits. This fix was tested with Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64. Thanks, Harold - Commit messages: - 8289534: Change 'uncomplicated'

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v4]

2022-06-30 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v3]

2022-06-30 Thread Alan Bateman
On Thu, 30 Jun 2022 16:06:52 GMT, Chris Plummer wrote: >> The test uses a platform thread by default so it's not testing the issue in >> JDK-8287847. The suggestion is to have it re-run with the system property >> set, like this: >> >> @run main/othervm SuspendAfterDeath >> @run main/othervm

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v3]

2022-06-30 Thread Chris Plummer
On Thu, 30 Jun 2022 06:34:30 GMT, Alan Bateman wrote: >> Yes, it requires `-Dmain.wrapper=Virtual`, and that was intentional. My >> thinking was that we don't have any com/sun/jdi tests that do any virtual >> thread testing unless run with `-Dmain.wrapper=Virtual`, so why should this >> test

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v3]

2022-06-30 Thread Alan Bateman
On Thu, 30 Jun 2022 15:06:41 GMT, Chris Plummer wrote: >> I'm just pointing out that initialising breakpointReached to false is >> unnecessary as it's the default value. > > but do either of these fields need to be volatile? I think both need to be volatile. The writer is in threadDied and

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v3]

2022-06-30 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v3]

2022-06-30 Thread Chris Plummer
On Thu, 30 Jun 2022 06:34:55 GMT, Alan Bateman wrote: >> Actually I was a bit confused as to why thread was declared volatile, so I >> just followed the pattern. Maybe you can explain since you wrote it. > > I'm just pointing out that initialising breakpointReached to false is > unnecessary as

Re: RFR: 8256811: Delayed/missed jdwp class unloading events [v9]

2022-06-30 Thread Zhengyu Gu
On Wed, 29 Jun 2022 22:46:30 GMT, Chris Plummer wrote: > I just noticed the test is being added to a newly created > hotspot/jtreg/serviciability/jdi directory. It should be placed in one of the > existing jdi test locations, either nsk/jdi or jdk/com/sun/jdi. I think the > latter would be

Re: RFR: 8256811: Delayed/missed jdwp class unloading events [v11]

2022-06-30 Thread Zhengyu Gu
> Currently, jdi only check and process class unloading event when it detects a > new GC cycle. > > After [JDK-8212879](https://bugs.openjdk.org/browse/JDK-8212879), posting > class events can overlap with GC finish event, that results, sometimes, it > only captures partial or even empty

Re: RFR: 8256811: Delayed/missed jdwp class unloading events [v10]

2022-06-30 Thread Zhengyu Gu
> Currently, jdi only check and process class unloading event when it detects a > new GC cycle. > > After [JDK-8212879](https://bugs.openjdk.org/browse/JDK-8212879), posting > class events can overlap with GC finish event, that results, sometimes, it > only captures partial or even empty

[jdk19] Integrated: 8289278: Suspend/ResumeAllVirtualThreads need both can_suspend and can_support_virtual_threads

2022-06-30 Thread Alan Bateman
On Tue, 28 Jun 2022 09:02:59 GMT, Alan Bateman wrote: > This is spec only change to the JVM TI spec. The `SuspendAllVirtualThreads` > and `ResumeAllVirtualThreads` functions added in Java 19 currently specify > that they require one of the capabilities `can_suspend` or >

Re: RFR: 8289440: Remove vmTestbase/nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded003 from ProblemList.txt

2022-06-30 Thread Kevin Walls
On Wed, 29 Jun 2022 09:57:29 GMT, Kevin Walls wrote: > More context in the bug, but there's no evidence that this test should still > be problemlisted. > > Adding enableVerbose in the test itself should still keep this trivial: > seeing what actually happened in a test that was once labelled

Integrated: 8286397: Address possibly lossy conversions in jdk.hotspot.agent

2022-06-30 Thread Ryan Ernst
On Fri, 24 Jun 2022 14:59:04 GMT, Ryan Ernst wrote: > Applied required casts in jdk.hotspot.agent for the upcoming warning. > Verified by cherry-picking @asotona's patch. This pull request has now been integrated. Changeset: 7b5bd251 Author:Ryan Ernst Committer: Chris Hegarty URL:

Re: [jdk19] RFR: 8289278: Suspend/ResumeAllVirtualThreads need both can_suspend and can_support_virtual_threads

2022-06-30 Thread Iris Clark
On Tue, 28 Jun 2022 09:02:59 GMT, Alan Bateman wrote: > This is spec only change to the JVM TI spec. The `SuspendAllVirtualThreads` > and `ResumeAllVirtualThreads` functions added in Java 19 currently specify > that they require one of the capabilities `can_suspend` or >

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v2]

2022-06-30 Thread Alan Bateman
On Wed, 29 Jun 2022 23:24:28 GMT, Chris Plummer wrote: >> test/jdk/com/sun/jdi/SuspendAfterDeath.java line 62: >> >>> 60: public class SuspendAfterDeath extends TestScaffold { >>> 61: private volatile ThreadReference thread; >>> 62: private volatile boolean breakpointReached = false; >>