Re: RFR: 8296323: JVMTI can_support_virtual_threads not available for agents loaded into running VM [v2]

2022-11-18 Thread Serguei Spitsyn
> The can_support_virtual_thread was initially implemented as an onload > capability. > It is why this capability does not work for the agents loaded into running VM. > The fix is to move it from `onload` to `always`capabilities list. > > Testing: > New test is added: VirtualStartThreadTest. > TB

RFR: 8296323: JVMTI can_support_virtual_threads not available for agents loaded into running VM

2022-11-18 Thread Serguei Spitsyn
The can_support_virtual_thread was initially implemented as an onload capability. It is why this capability does not work for the agents loaded into running VM. The fix is to move it from `onload` to `always`capabilities list. Testing: New test is added: VirtualStartThreadTest. TBD: mach5 jvmti,

Re: RFR: JDK-8296796: Provide clean, platform-agnostic interface to C-heap trimming [v3]

2022-11-18 Thread Thomas Stuefe
On Sat, 19 Nov 2022 06:48:24 GMT, Thomas Stuefe wrote: >> This is a breakout from >> [JDK-8293114](https://bugs.openjdk.org/browse/JDK-8293114), which is starved >> for reviews. So I attempt to break up that fix into smaller units which are >> hopefully easier to review separately. >> >> We c

Re: RFR: JDK-8296796: Provide clean, platform-agnostic interface to C-heap trimming [v3]

2022-11-18 Thread Thomas Stuefe
> This is a breakout from > [JDK-8293114](https://bugs.openjdk.org/browse/JDK-8293114), which is starved > for reviews. So I attempt to break up that fix into smaller units which are > hopefully easier to review separately. > > We can trim the C-heap manually using jcmd since > [JDK-8268893](h

Integrated: 8297289: problem list runtime/vthread/RedefineClass.java and TestObjectAllocationSampleEvent.java

2022-11-18 Thread Serguei Spitsyn
On Fri, 18 Nov 2022 23:35:57 GMT, Serguei Spitsyn wrote: > A trivial fix to ProblemList two tests: > runtime/vthread/RedefineClass.java > runtime/vthread/TestObjectAllocationSampleEvent.java This pull request has now been integrated. Changeset: 0ec575a2 Author:Serguei Spitsyn URL:

Re: RFR: 8297289: problem list runtime/vthread/RedefineClass.java and TestObjectAllocationSampleEvent.java

2022-11-18 Thread Serguei Spitsyn
On Fri, 18 Nov 2022 23:35:57 GMT, Serguei Spitsyn wrote: > A trivial fix to ProblemList two tests: > runtime/vthread/RedefineClass.java > runtime/vthread/TestObjectAllocationSampleEvent.java Thank you, Dan! - PR: https://git.openjdk.org/jdk/pull/11245

RFR: 8297289: problem list runtime/vthread/RedefineClass.java and TestObjectAllocationSampleEvent.java

2022-11-18 Thread Serguei Spitsyn
A trivial fix to ProblemList two tests: runtime/vthread/RedefineClass.java runtime/vthread/TestObjectAllocationSampleEvent.java - Commit messages: - 8297289: problem list runtime/vthread/RedefineClass.java and TestObjectAllocationSampleEvent.java Changes: https://git.openjdk.or

Re: RFR: 8297289: problem list runtime/vthread/RedefineClass.java and TestObjectAllocationSampleEvent.java

2022-11-18 Thread Daniel D . Daugherty
On Fri, 18 Nov 2022 23:35:57 GMT, Serguei Spitsyn wrote: > A trivial fix to ProblemList two tests: > runtime/vthread/RedefineClass.java > runtime/vthread/TestObjectAllocationSampleEvent.java Thumbs up. This is a trivial fix. - Marked as reviewed by dcubed (Reviewer). PR: https

Re: RFR: JDK-8297215: Update libs tests to use @enablePreview [v2]

2022-11-18 Thread Joe Darcy
On Fri, 18 Nov 2022 19:06:02 GMT, Alan Bateman wrote: >> Right; ideally when the feature becomes non-preview the test update would >> just be removing the "@enablePreview" line. I didn't author these tests so I >> initially left any "othervm" directives in place since they aren't >> incorrect,

Integrated: 8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded into running VM

2022-11-18 Thread Serguei Spitsyn
On Thu, 17 Nov 2022 09:12:07 GMT, Serguei Spitsyn wrote: > The `VirtualThread` static field `notifyJvmtiEvents` is not set correctly in > cases JVMTI agents are loaded into running VM. It is because an extra call to > java_lang_VirtualThread::init_static_notify_jvmti_events() is needed. > This

Re: RFR: 8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded into running VM [v3]

2022-11-18 Thread Serguei Spitsyn
On Fri, 18 Nov 2022 07:23:20 GMT, Serguei Spitsyn wrote: >> The `VirtualThread` static field `notifyJvmtiEvents` is not set correctly in >> cases JVMTI agents are loaded into running VM. It is because an extra call >> to java_lang_VirtualThread::init_static_notify_jvmti_events() is needed. >> T

Re: RFR: 8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded into running VM [v3]

2022-11-18 Thread Leonid Mesnik
On Fri, 18 Nov 2022 07:23:20 GMT, Serguei Spitsyn wrote: >> The `VirtualThread` static field `notifyJvmtiEvents` is not set correctly in >> cases JVMTI agents are loaded into running VM. It is because an extra call >> to java_lang_VirtualThread::init_static_notify_jvmti_events() is needed. >> T

Re: RFR: 8297083: Remove vmTestbase/nsk/jvmti/GetAllThreads/allthr001 from problem list

2022-11-18 Thread Alex Menkov
On Fri, 18 Nov 2022 03:37:03 GMT, Chris Plummer wrote: > > Gotta wonder how the fix for 8284027 was tested with the test still > > on the ProblemList. Or did the ProblemList update just get lost? > > I'm not sure. Maybe @alexmenkov remembers. I don't remember, but most likely by running the tes

Re: RFR: 8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded into running VM [v3]

2022-11-18 Thread Serguei Spitsyn
On Fri, 18 Nov 2022 19:34:19 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> ajust condition when init_static_notify_jvmti_events() is called > > src/hotspot/share/prims/jvmtiExport.cpp line 3

Re: RFR: 8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded into running VM [v3]

2022-11-18 Thread Chris Plummer
On Fri, 18 Nov 2022 07:23:20 GMT, Serguei Spitsyn wrote: >> The `VirtualThread` static field `notifyJvmtiEvents` is not set correctly in >> cases JVMTI agents are loaded into running VM. It is because an extra call >> to java_lang_VirtualThread::init_static_notify_jvmti_events() is needed. >> T

Re: RFR: 8269817: serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java timed out with -Xcomp

2022-11-18 Thread Serguei Spitsyn
On Fri, 18 Nov 2022 01:16:13 GMT, Leonid Mesnik wrote: > Test serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java > timed out with -Xcomp. It starts 2000 threads at the same time. However, > there is no goal to start them simultaneously. It is needed just to start a > lot o

Integrated: 8297083: Remove vmTestbase/nsk/jvmti/GetAllThreads/allthr001 from problem list

2022-11-18 Thread Chris Plummer
On Thu, 17 Nov 2022 20:49:53 GMT, Chris Plummer wrote: > Remove vmTestbase/nsk/jvmti/GetAllThreads/allthr001 from vthread problem > list. [JDK-8284027](https://bugs.openjdk.org/browse/JDK-8284027) has been > fixed. > > Ran test on all supported platforms with: > > `JTREG_EXTRA_PROBLEM_LISTS=P

Integrated: 8297080: Remove com/sun/jdi/NashornPopFrameTest.java from the problem list

2022-11-18 Thread Chris Plummer
On Thu, 17 Nov 2022 18:53:58 GMT, Chris Plummer wrote: > The bug is closed (was specific to sparc) and the test no longer exists > (Nashorn has been removed). > > I'd like to push this as a trivial change. This pull request has now been integrated. Changeset: 9b4e0e84 Author:Chris Plumme

Re: RFR: JDK-8297215: Update libs tests to use @enablePreview [v2]

2022-11-18 Thread Alan Bateman
On Fri, 18 Nov 2022 18:38:46 GMT, Joe Darcy wrote: >> test/jdk/java/lang/Thread/BuilderTest.java line 29: >> >>> 27: * @enablePreview >>> 28: * @compile BuilderTest.java >>> 29: * @run testng/othervm BuilderTest >> >> I assume `@compile` can be dropped from most of these tests now. Also I >

Re: RFR: JDK-8297164: Update troff man pages and CheckManPageOptions.java

2022-11-18 Thread Jonathan Gibbons
On Fri, 18 Nov 2022 02:31:19 GMT, David Holmes wrote: > Hi @jonathan-gibbons , > > I notice that in the new version dash characters are no longer escaped as > `-`, do these still display correctly? Yes, at least in all the files I verified and I have no reason to believe it might be different

Re: RFR: JDK-8297215: Update libs tests to use @enablePreview [v2]

2022-11-18 Thread Joe Darcy
On Fri, 18 Nov 2022 08:28:22 GMT, Alan Bateman wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Respond to review feedback. > > test/jdk/java/lang/Thread/BuilderTest.java line 29: > >> 27: * @enablePreview >> 28: *

Re: RFR: JDK-8297215: Update libs tests to use @enablePreview [v2]

2022-11-18 Thread Joe Darcy
> Similar to an update recently done for langtools tests, update the libraries > regression tests to take advantage of the @enablePreview jtreg feature. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Respond to review feedback. --

Re: RFR: 8296472: Remove ObjectLocker around appendToClassPathForInstrumentation call [v3]

2022-11-18 Thread Alan Bateman
On Mon, 7 Nov 2022 20:40:33 GMT, Coleen Phillimore wrote: >> This patch moves the acquisition of the boot class loader lock out of the >> JVM and into the Java function. >> Tested with tier1-4, and jvmti and jdi tests locally. > > Coleen Phillimore has updated the pull request incrementally with

Re: RFR: 8296472: Remove ObjectLocker around appendToClassPathForInstrumentation call [v3]

2022-11-18 Thread Coleen Phillimore
On Mon, 7 Nov 2022 20:40:33 GMT, Coleen Phillimore wrote: >> This patch moves the acquisition of the boot class loader lock out of the >> JVM and into the Java function. >> Tested with tier1-4, and jvmti and jdi tests locally. > > Coleen Phillimore has updated the pull request incrementally with

Re: RFR: 8269817: serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java timed out with -Xcomp

2022-11-18 Thread Kevin Walls
On Fri, 18 Nov 2022 01:16:13 GMT, Leonid Mesnik wrote: > Test serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java > timed out with -Xcomp. It starts 2000 threads at the same time. However, > there is no goal to start them simultaneously. It is needed just to start a > lot o

Re: RFR: JDK-8296796: Provide clean, platform-agnostic interface to C-heap trimming [v2]

2022-11-18 Thread Thomas Stuefe
On Fri, 18 Nov 2022 12:54:34 GMT, Roman Kennke wrote: > Looks good to me. Thank you! > I kinda like the OS interface. If the proliferation of lots of unimplemented > methods in os/* is a concern, we could provide default impls in shared if > !**GLIBC** as a middle-ground. WDYT? I fear this w

Re: RFR: JDK-8296796: Provide clean, platform-agnostic interface to C-heap trimming [v2]

2022-11-18 Thread Roman Kennke
On Mon, 14 Nov 2022 07:32:25 GMT, Thomas Stuefe wrote: >> This is a breakout from >> [JDK-8293114](https://bugs.openjdk.org/browse/JDK-8293114), which is starved >> for reviews. So I attempt to break up that fix into smaller units which are >> hopefully easier to review separately. >> >> We c

Integrated: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks

2022-11-18 Thread Poison
On Thu, 17 Nov 2022 06:28:37 GMT, Poison wrote: > As the title says, add the volatile modifier. This pull request has now been integrated. Changeset: dd18d76b Author:tianshuang Committer: Severin Gehwolf URL: https://git.openjdk.org/jdk/commit/dd18d76b4c1dfa79707634bcd4df4f8e7cfb8b

Re: RFR: 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks [v2]

2022-11-18 Thread Severin Gehwolf
On Thu, 17 Nov 2022 09:43:39 GMT, Poison wrote: >> As the title says, add the volatile modifier. > > Poison has updated the pull request incrementally with one additional commit > since the last revision: > > 8297173: usageTicks and totalTicks should be volatile @tianshuang If you /integrate

Re: RFR: JDK-8297215: Update libs tests to use @enablePreview

2022-11-18 Thread Alan Bateman
On Thu, 17 Nov 2022 21:48:11 GMT, Joe Darcy wrote: > Similar to an update recently done for langtools tests, update the libraries > regression tests to take advantage of the @enablePreview jtreg feature. test/jdk/java/lang/Thread/BuilderTest.java line 29: > 27: * @enablePreview > 28: * @comp