Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread Leonid Mesnik
On Wed, 20 Sep 2023 05:32:07 GMT, David Holmes wrote: >> Test start failing because of unexpected VM logging. >> The fix is to search expected string ignoring any unknown output from forked >> process. >> Tested with tier1 and by running test with various options used in CI. > > test/hotspot/jtr

Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread David Holmes
On Wed, 20 Sep 2023 03:56:28 GMT, Leonid Mesnik wrote: > Test start failing because of unexpected VM logging. > The fix is to search expected string ignoring any unknown output from forked > process. > Tested with tier1 and by running test with various options used in CI. Okay - seems reasonabl

Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread David Holmes
On Wed, 20 Sep 2023 05:23:12 GMT, Leonid Mesnik wrote: > OutputAnalyzer 'firstmatch' method analyze result. It analyze string from > 'String OutputBuffer getStdout()' and can't be used to communicate with > process. Ah I see. > Something like this was my first fix. Use largeHeapScanner.nextLi

Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread Leonid Mesnik
On Wed, 20 Sep 2023 03:56:28 GMT, Leonid Mesnik wrote: > Test start failing because of unexpected VM logging. > The fix is to search expected string ignoring any unknown output from forked > process. > Tested with tier1 and by running test with various options used in CI. OutputAnalyzer 'firstm

Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread Leonid Mesnik
On Wed, 20 Sep 2023 03:56:28 GMT, Leonid Mesnik wrote: > Test start failing because of unexpected VM logging. > The fix is to search expected string ignoring any unknown output from forked > process. > Tested with tier1 and by running test with various options used in CI. Something like this wa

Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread David Holmes
On Wed, 20 Sep 2023 03:56:28 GMT, Leonid Mesnik wrote: > Test start failing because of unexpected VM logging. > The fix is to search expected string ignoring any unknown output from forked > process. > Tested with tier1 and by running test with various options used in CI. Or even use the regula

Re: RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread David Holmes
On Wed, 20 Sep 2023 03:56:28 GMT, Leonid Mesnik wrote: > Test start failing because of unexpected VM logging. > The fix is to search expected string ignoring any unknown output from forked > process. > Tested with tier1 and by running test with various options used in CI. Can't you just change

RFR: 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829

2023-09-19 Thread Leonid Mesnik
Test start failing because of unexpected VM logging. The fix is to search expected string ignoring any unknown output from forked process. Tested with tier1 and by running test with various options used in CI. - Commit messages: - 8316562: serviceability/sa/jmap-hprof/JMapHProfLarge

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v3]

2023-09-19 Thread David Holmes
On Tue, 19 Sep 2023 23:36:42 GMT, Chris Plummer wrote: > The only time listenAddr is not set is when using AF_UNSPEC ("system"). @plummercj no it can also be unset if there are no listed addresses for the preferred family e.g. you prefer v6 but they are all v4, or vice-versa. The new code mak

Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v24]

2023-09-19 Thread David Holmes
On Tue, 19 Sep 2023 22:48:16 GMT, Jonathan Joo wrote: >> 8315149: Add hsperf counters for CPU time of internal GC threads > > Jonathan Joo has updated the pull request incrementally with one additional > commit since the last revision: > > Fix build issues Changes requested by dholmes (Revie

Re: RFR: 8308762: Metaspace leak with Instrumentation.retransform [v6]

2023-09-19 Thread David Holmes
On Thu, 3 Aug 2023 08:43:12 GMT, Jean-Philippe Bempel wrote: >> Fix a small leak in constant pool merging during retransformation of a >> class. If this class has a catch block with `Throwable`, the class >> `Throwable` is pre-resolved in the constant pool, while all the other >> classes are

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v3]

2023-09-19 Thread Alex Menkov
On Tue, 19 Sep 2023 23:54:31 GMT, Liam Miller-Cushon wrote: > > I think Alex has commented that this can be made more obvious with a check > > for AF_UNSPEC. > > Thanks, yes, I have applied that suggestion. > > > > For 748, it's handling a situation where IPv4 isn't specifically > > > preferr

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v3]

2023-09-19 Thread Liam Miller-Cushon
On Tue, 19 Sep 2023 23:36:42 GMT, Chris Plummer wrote: > I think Alex has commented that this can be made more obvious with a check > for AF_UNSPEC. Thanks, yes, I have applied that suggestion. > > For 748, it's handling a situation where IPv4 isn't specifically preferred. > > The implementat

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v3]

2023-09-19 Thread Chris Plummer
On Tue, 19 Sep 2023 05:30:39 GMT, David Holmes wrote: > Okay I see now that `ai` is not important. We won't have set `listenAddr` so > we will take the first `addrInfo`. But this seems somewhat random behaviour > as the first `addrInfo` could be either V4 or V6 (what controls the order?). > Bu

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v5]

2023-09-19 Thread Liam Miller-Cushon
> Please consider this fix for > [JDK-8313804](https://bugs.openjdk.org/browse/JDK-8313804), which adds > support to JDWP for `-Djava.net.preferIPv6Addresses=system`. Previously it > only handled `-Djava.net.preferIPv6Addresses=true` and > `-Djava.net.preferIPv6Addresses=false`. Liam Miller-Cu

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v2]

2023-09-19 Thread Chris Plummer
On Mon, 18 Sep 2023 23:57:33 GMT, Liam Miller-Cushon wrote: > For 748, it's handling a situation where IPv4 isn't specifically preferred. > The implementation comment notes 'if preferredAddressFamily is AF_INET6 or > not set'. What does "specifically preferred" mean? By default it will be set

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v4]

2023-09-19 Thread Liam Miller-Cushon
On Tue, 19 Sep 2023 23:22:50 GMT, Alex Menkov wrote: >> Liam Miller-Cushon has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix pre-existing typo > > 1st pass in attach (line 970) is also not needed, can be something like > > -/*

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v4]

2023-09-19 Thread Alex Menkov
On Tue, 19 Sep 2023 15:41:23 GMT, Liam Miller-Cushon wrote: >> Please consider this fix for >> [JDK-8313804](https://bugs.openjdk.org/browse/JDK-8313804), which adds >> support to JDWP for `-Djava.net.preferIPv6Addresses=system`. Previously it >> only handled `-Djava.net.preferIPv6Addresses=tr

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v4]

2023-09-19 Thread Alex Menkov
On Tue, 19 Sep 2023 15:41:23 GMT, Liam Miller-Cushon wrote: >> Please consider this fix for >> [JDK-8313804](https://bugs.openjdk.org/browse/JDK-8313804), which adds >> support to JDWP for `-Djava.net.preferIPv6Addresses=system`. Previously it >> only handled `-Djava.net.preferIPv6Addresses=tr

Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v24]

2023-09-19 Thread Jonathan Joo
> 8315149: Add hsperf counters for CPU time of internal GC threads Jonathan Joo has updated the pull request incrementally with one additional commit since the last revision: Fix build issues - Changes: - all: https://git.openjdk.org/jdk/pull/15082/files - new: https://git.op

Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v23]

2023-09-19 Thread Jonathan Joo
> 8315149: Add hsperf counters for CPU time of internal GC threads Jonathan Joo has updated the pull request incrementally with one additional commit since the last revision: Fix logic for publishing total cpu time and convert atomic jlong to long - Changes: - all: https://git.

Re: RFR: 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists [v3]

2023-09-19 Thread Chris Plummer
On Tue, 19 Sep 2023 07:28:52 GMT, Axel Boldt-Christmas wrote: > All the failing CDS tests pass now. Will rerun a full test suite to be sure. > (There were two CDS test files that needed to be updated) [JDK-8293507](https://bugs.openjdk.org/browse/JDK-8293507) is suppose to address the CDS iss

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v2]

2023-09-19 Thread Liam Miller-Cushon
On Tue, 19 Sep 2023 21:40:18 GMT, Chris Plummer wrote: > > Similar to @plummercj comment what about this code at L730: > > ``` > > // Try to find bind address of preferred address family first. > > for (ai = addrInfo; ai != NULL; ai = ai->ai_next) { > > if (ai->ai_family == preferredA

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v2]

2023-09-19 Thread Chris Plummer
On Mon, 18 Sep 2023 23:44:22 GMT, Chris Plummer wrote: >> Liam Miller-Cushon has refreshed the contents of this pull request, and >> previous commits have been removed. The incremental views will show >> differences compared to the previous content of the PR. The pull request >> contains one n

Re: RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties

2023-09-19 Thread Phil Race
On Tue, 12 Sep 2023 08:21:35 GMT, Matthias Baesken wrote: > > > So what about FontConfiguration? Is that something using the class > > > directly too? > > > > > > I think this is not needed either. As far as I can see, the instance of > > `FontConfiguration` is created from `doPrivileged`, th

RFR: 8316445: Mark com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java as vm.flagless

2023-09-19 Thread Leonid Mesnik
Test com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java check how beans work with VM flags and ignore external flags. It doesn't make sense to run it with external options so just mark it as flagless. Tested with running tier1 and test with/without additional options. - Comm

Re: RFR: 8315880: change LockingMode default from LM_LEGACY to LM_LIGHTWEIGHT

2023-09-19 Thread Daniel D . Daugherty
On Mon, 18 Sep 2023 21:36:55 GMT, David Holmes wrote: >> Change the default of LockingMode to LM_LIGHTWEIGHT from LM_LEGACY. >> >> This fix has been tested with 3 Mach5 Tier[1-8] runs and a 4th is in process. > > Looks good. Thanks. @dholmes-ora, @rkennke, and @stefank - Thanks for the reviews!

Re: RFR: JDK-8315486: vmTestbase/nsk/jdwp/ThreadReference/ForceEarlyReturn/forceEarlyReturn002/forceEarlyReturn002.java timed out [v2]

2023-09-19 Thread Leonid Mesnik
On Thu, 7 Sep 2023 01:25:19 GMT, Alex Menkov wrote: >> To test ForceEarlyReturn command for NO_MORE_FRAMES case the test creates >> ThreadStartEventRequest with SUSPEND_ALL policy and requests debuggee to >> start new thread. >> If debuggee JVM starts some internal threads before the request is

Integrated: 8314829: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java ignores vm flags

2023-09-19 Thread Leonid Mesnik
On Fri, 15 Sep 2023 23:18:06 GMT, Leonid Mesnik wrote: > The test is updated to start the target VM with tested flags in addition to > heap size. > Tested with tier1, and iter5/6 rt/svc with CI flags. This pull request has now been integrated. Changeset: e0f8d168 Author:Leonid Mesnik URL:

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v3]

2023-09-19 Thread Liam Miller-Cushon
On Tue, 19 Sep 2023 11:03:36 GMT, Alan Bateman wrote: >> Liam Miller-Cushon has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review feedback > > test/jdk/com/sun/jdi/JdwpNetProps.java line 75: > >> 73: .run(TestResult

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v4]

2023-09-19 Thread Liam Miller-Cushon
> Please consider this fix for > [JDK-8313804](https://bugs.openjdk.org/browse/JDK-8313804), which adds > support to JDWP for `-Djava.net.preferIPv6Addresses=system`. Previously it > only handled `-Djava.net.preferIPv6Addresses=true` and > `-Djava.net.preferIPv6Addresses=false`. Liam Miller-Cu

Re: RFR: 8315966: Relativize initial_sp in interpreter frames

2023-09-19 Thread Martin Doerr
On Tue, 19 Sep 2023 09:00:01 GMT, Fredrik Bredberg wrote: > Relativize initial_sp in interpreter frames. > > By changing the "initial_sp" (AKA "monitor_block_top" or "monitors" on > PowerPC) member in interpreter frames from being an absolute address into an > offset that is relative to the f

Re: RFR: 8308762: Metaspace leak with Instrumentation.retransform

2023-09-19 Thread Jean-Philippe Bempel
On Thu, 13 Jul 2023 14:34:38 GMT, Coleen Phillimore wrote: >> Fix a small leak in constant pool merging during retransformation of a >> class. If this class has a catch block with `Throwable`, the class >> `Throwable` is pre-resolved in the constant pool, while all the other >> classes are in

Re: RFR: 8315966: Relativize initial_sp in interpreter frames

2023-09-19 Thread Fredrik Bredberg
On Tue, 19 Sep 2023 09:00:01 GMT, Fredrik Bredberg wrote: > Relativize initial_sp in interpreter frames. > > By changing the "initial_sp" (AKA "monitor_block_top" or "monitors" on > PowerPC) member in interpreter frames from being an absolute address into an > offset that is relative to the f

RFR: 8315966: Relativize initial_sp in interpreter frames

2023-09-19 Thread Fredrik Bredberg
Relativize initial_sp in interpreter frames. By changing the "initial_sp" (AKA "monitor_block_top" or "monitors" on PowerPC) member in interpreter frames from being an absolute address into an offset that is relative to the frame pointer, we don't need to change the value as we freeze and thaw

Re: RFR: JDK-8313804: JDWP support for -Djava.net.preferIPv6Addresses=system [v3]

2023-09-19 Thread Alan Bateman
On Tue, 19 Sep 2023 00:03:27 GMT, Liam Miller-Cushon wrote: >> Please consider this fix for >> [JDK-8313804](https://bugs.openjdk.org/browse/JDK-8313804), which adds >> support to JDWP for `-Djava.net.preferIPv6Addresses=system`. Previously it >> only handled `-Djava.net.preferIPv6Addresses=tr

Integrated: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-09-19 Thread Alan Bateman
On Fri, 21 Jul 2023 18:01:45 GMT, Alan Bateman wrote: > Thread::getState is an API for monitoring and management purposes to report > the thread state. If a virtual thread is parked with LockSupport.parkNanos, > its state is reported as WAITING when it should be TIMED_WAITING. JVM TI > GetThr

Re: RFR: 8301639: JDI and JDWP specs should clarify potential deadlock issues with method invocation [v2]

2023-09-19 Thread Alan Bateman
On Mon, 18 Sep 2023 18:54:53 GMT, Chris Plummer wrote: > In the CR David requested that I still do a CSR to cover the minor jdwp.spec > changes. I wasn't intending to have the CSR cover the APi note. Changes to the JDWP spec or JDI API are tracked by CSR. The changes here just expand rational

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked [v4]

2023-09-19 Thread Ron Pressler
On Tue, 19 Sep 2023 10:35:33 GMT, Alan Bateman wrote: >> Thread::getState is an API for monitoring and management purposes to report >> the thread state. If a virtual thread is parked with LockSupport.parkNanos, >> its state is reported as WAITING when it should be TIMED_WAITING. JVM TI >> Ge

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked [v4]

2023-09-19 Thread Alan Bateman
> Thread::getState is an API for monitoring and management purposes to report > the thread state. If a virtual thread is parked with LockSupport.parkNanos, > its state is reported as WAITING when it should be TIMED_WAITING. JVM TI > GetThreadState has the same issue in that it returns > JVMTI_

Re: RFR: 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists [v5]

2023-09-19 Thread Axel Boldt-Christmas
> ObjectMonitorIterator fails to return the most resent monitor added. It start > with returning the `nextOM()` ObjectMonitor from the `_head` ObjectMonitor > but fails to ever return the `_head` ObjectMonitor. > The current implementation can also not handle that the `_head` is nullptr > (no mo

Re: RFR: 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists [v3]

2023-09-19 Thread Axel Boldt-Christmas
On Mon, 18 Sep 2023 12:11:24 GMT, Axel Boldt-Christmas wrote: >> ObjectMonitorIterator fails to return the most resent monitor added. It >> start with returning the `nextOM()` ObjectMonitor from the `_head` >> ObjectMonitor but fails to ever return the `_head` ObjectMonitor. >> The current imp

Re: RFR: 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists [v4]

2023-09-19 Thread Axel Boldt-Christmas
> ObjectMonitorIterator fails to return the most resent monitor added. It start > with returning the `nextOM()` ObjectMonitor from the `_head` ObjectMonitor > but fails to ever return the `_head` ObjectMonitor. > The current implementation can also not handle that the `_head` is nullptr > (no mo

Re: RFR: 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists

2023-09-19 Thread Axel Boldt-Christmas
On Mon, 18 Sep 2023 18:49:43 GMT, Chris Plummer wrote: > > CDS tests are not happy with changing the class hierarchy of the > > LingeredApp. Unless it is easily solved for the CDS test I will revert > > those changes and have the 'TestObjectMonitorIterate' just do a less > > precise check of a