Re: RFR: 8315717: ProblemList serviceability/sa/TestHeapDumpForInvokeDynamic.java with ZGC

2023-09-05 Thread Kevin Walls
On Tue, 5 Sep 2023 17:17:25 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > serviceability/sa/TestHeapDumpForInvokeDynamic.java with ZGC. Marked as reviewed by kevinw (Committer). Thanks Dan! - PR Review:

Re: RFR: 8316199: Remove sun/tools/jstatd/TestJstatd* tests from problemlist for Windows.

2023-09-14 Thread Kevin Walls
On Wed, 13 Sep 2023 14:34:42 GMT, Kevin Walls wrote: > Original failure in 8081569 is a long time ago, and not reproducing. > Other failures recorded there may be different problems, some of them are > port related which are helped by other changes since these tests were > p

Integrated: 8316199: Remove sun/tools/jstatd/TestJstatd* tests from problemlist for Windows.

2023-09-14 Thread Kevin Walls
On Wed, 13 Sep 2023 14:34:42 GMT, Kevin Walls wrote: > Original failure in 8081569 is a long time ago, and not reproducing. > Other failures recorded there may be different problems, some of them are > port related which are helped by other changes since these tests were > p

Re: RFR: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table"

2023-08-24 Thread Kevin Walls
On Thu, 24 Aug 2023 11:34:13 GMT, Kevin Walls wrote: > Port clashes happening when several tests from test/jdk/sun/tools/jstatd run > at the same time on the same machine. > > There is logic in here for detecting this, but it's not working. > > We recently saw this fail

RFR: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table"

2023-08-24 Thread Kevin Walls
Port clashes happening when several tests from test/jdk/sun/tools/jstatd run at the same time on the same machine. There is logic in here for detecting this, but it's not working. We recently saw this fail with a port in use, and the failure is: [Jstatd-Thread] Could not bind

Re: RFR: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table" [v2]

2023-08-24 Thread Kevin Walls
d by TCPTransport.java. > But that is not what we see in this failure. > Should update its test to check for "Could not bind". > Should limit the retries also. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision

RFR: 8316199: Remove sun/tools/jstatd/TestJstatd* tests from problemlist for Windows.

2023-09-13 Thread Kevin Walls
Original failure in 8081569 is a long time ago, and not reproducing. Other failures recorded there may be different problems, some of them are port related which are helped by other changes since these tests were problemlisted. This problemlist entry should be removed. - Commit

RFR: 8299560: Assertion failed: currentQueryIndex >= 0 && currentQueryIndex < numberOfJavaProcessesAtInitialization

2023-09-15 Thread Kevin Walls
This assert happens rarely, but is seen in testing a few times. getCurrentQueryIndexForProcess comments that it can return -1, but it asserts that the value is >=0 If we let it return -1 for failure as its comment documents, the caller can handle the failure and not assert and end the JVM.

Re: RFR: 8315563: Remove references to JDK-8226420 from problem list

2023-09-04 Thread Kevin Walls
On Sat, 2 Sep 2023 00:50:08 GMT, Alex Menkov wrote: > JDK-8226420 has been closed as a duplicate. > The fix removes references to 8226420 from problemlist (the tests remain > problem-listed due other issues). Marked as reviewed by kevinw (Committer). - PR Review:

Re: RFR: 8315563: Remove references to JDK-8226420 from problem list

2023-09-04 Thread Kevin Walls
On Sat, 2 Sep 2023 02:31:54 GMT, ExE Boss wrote: >> JDK-8226420 has been closed as a duplicate. >> The fix removes references to 8226420 from problemlist (the tests remain >> problem-listed due other issues). > > test/jdk/ProblemList.txt line 727: > >> 725:

Re: RFR: 8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies [v2]

2023-09-08 Thread Kevin Walls
On Fri, 8 Sep 2023 10:21:23 GMT, Soumadipta Roy wrote: >> 8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with >> -XX:-VerifyDependencies >> >> serviceability/sa/TestJmapCoreMetaspace.java runs in hotspot:tier2, and >> takes about 330 seconds out of 670 seconds of the entire

Re: RFR: 8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies [v2]

2023-09-08 Thread Kevin Walls
On Fri, 8 Sep 2023 10:21:23 GMT, Soumadipta Roy wrote: >> 8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with >> -XX:-VerifyDependencies >> >> serviceability/sa/TestJmapCoreMetaspace.java runs in hotspot:tier2, and >> takes about 330 seconds out of 670 seconds of the entire

RFR: 8319238: JMX ThreadPoolAccTest.java is too verbose and should fail before timeout

2023-11-01 Thread Kevin Walls
Discovered while testing changes that made this test fail. The test failure is hard to diagnose as it logs and retries at full speed, possibly forever, until timeout. This can hit a log file limit. We can save thousands of lines of text being printed when the test runs normally and

Re: RFR: 8319238: JMX ThreadPoolAccTest.java is too verbose and should fail before timeout

2023-11-02 Thread Kevin Walls
On Thu, 2 Nov 2023 15:47:00 GMT, Serguei Spitsyn wrote: >> Discovered while testing changes that made this test fail. The test failure >> is hard to diagnose as it logs and retries at full speed, possibly forever, >> until timeout. This can hit a log file limit. We can save thousands of >>

Integrated: 8319238: JMX ThreadPoolAccTest.java is too verbose and should fail before timeout

2023-11-07 Thread Kevin Walls
On Wed, 1 Nov 2023 17:10:34 GMT, Kevin Walls wrote: > Discovered while testing changes that made this test fail. The test failure > is hard to diagnose as it logs and retries at full speed, possibly forever, > until timeout. This can hit a log file limit. We can save thousands of

Re: RFR: 8318410: [TESTBUG] jdk/java/lang/instrument/BootClassPath/BootClassPathTest.sh fails on Japanese Windows [v2]

2023-10-30 Thread Kevin Walls
On Thu, 19 Oct 2023 07:54:47 GMT, Kimura Yukihiro wrote: >> I would like to fix this issue >> because the test dose not work as intended. >> Could someone please review it? >> >> Thanks, >> Kimura Yukihiro > > Kimura Yukihiro has updated the pull request incrementally with one > additional

Re: RFR: 8319465: Typos in javadoc of com.sun.management.OperatingSystemMXBean methods

2023-11-06 Thread Kevin Walls
On Mon, 6 Nov 2023 06:55:21 GMT, Jaikiran Pai wrote: > Can I please get a review of this PR which fixes the typos in the method > javadocs of com.sun.management.OperatingSystemMXBean? > > As noted in https://bugs.openjdk.org/browse/JDK-8319465, this PR replaces the > word "betweens" by

Re: RFR: 8314021: HeapDump: Optimize segmented heap file merging phase [v2]

2023-09-18 Thread Kevin Walls
On Thu, 7 Sep 2023 02:19:10 GMT, Yi Yang wrote: >> This patch reduce ~16%(24s->20s) pahse 2 merge time during dumping 32g heap >> with 96threads and fixes a memory leak of compressor >> >> You might argue why this is Linux-only optimization, because sendfile >> requires at least socket fd in

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

2023-09-20 Thread Kevin Walls
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. Marked as reviewed by

Re: RFR: 8299560: Assertion failed: currentQueryIndex >= 0 && currentQueryIndex < numberOfJavaProcessesAtInitialization

2023-09-27 Thread Kevin Walls
On Tue, 26 Sep 2023 19:28:47 GMT, Chris Plummer wrote: >> Fine then. Thank you for the explanation. > > What was the cause of all the 0's in the output, and how did you get rid of > them so you could see the assert message? Thanks Leonid! On the \u content, I don't see that mess in the

Re: RFR: 8299560: Assertion failed: currentQueryIndex >= 0 && currentQueryIndex < numberOfJavaProcessesAtInitialization

2023-09-26 Thread Kevin Walls
On Wed, 20 Sep 2023 22:08:27 GMT, Leonid Mesnik wrote: >> This assert happens rarely, but is seen in testing a few times. >> >> getCurrentQueryIndexForProcess comments that it can return -1, but it >> asserts that the value is >=0 >> >> If we let it return -1 for failure as its comment

Re: RFR: 8299560: Assertion failed: currentQueryIndex >= 0 && currentQueryIndex < numberOfJavaProcessesAtInitialization

2023-09-27 Thread Kevin Walls
On Wed, 27 Sep 2023 10:36:08 GMT, Kevin Walls wrote: >> What was the cause of all the 0's in the output, and how did you get rid of >> them so you could see the assert message? > > Thanks Leonid! > > On the \u content, I don't see that mess in the conso

Integrated: 8299560: Assertion failed: currentQueryIndex >= 0 && currentQueryIndex < numberOfJavaProcessesAtInitialization

2023-09-27 Thread Kevin Walls
On Thu, 14 Sep 2023 17:24:39 GMT, Kevin Walls wrote: > This assert happens rarely, but is seen in testing a few times. > > getCurrentQueryIndexForProcess comments that it can return -1, but it asserts > that the value is >=0 > > If we let it return -1 for failure as

Re: RFR: 8316447: 8 sun/management/jmxremote tests ignore VM flags

2023-10-05 Thread Kevin Walls
On Thu, 5 Oct 2023 05:32:20 GMT, Leonid Mesnik wrote: > Updated test to use createTesJvm. > Removed internal timeout to not fail when Xcomp is used and also to get more > info if the test times out., > > Tested by running tier1, hs-tier5 and executing test with various VM flags. Looks good -

Re: RFR: 8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java ignores VM flags

2023-10-09 Thread Kevin Walls
On Fri, 6 Oct 2023 20:47:22 GMT, Leonid Mesnik wrote: > Test fixed to accept vm flags. test/jdk/sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java line 311: > 309: private void executeJava() throws Throwable { > 310: String className =

RFR: 8209595: MonitorVmStartTerminate.java timed out

2023-10-09 Thread Kevin Walls
>From studying test failures, it looks like the way the test identifies its >related processes is failing. It checks the mainArgs of a process by attaching, and looks like it occasionally misses getting a valid match. The hasMainArgs method ignores exceptions as it is expecting some

Re: RFR: 8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java ignores VM flags

2023-10-09 Thread Kevin Walls
On Fri, 6 Oct 2023 20:47:22 GMT, Leonid Mesnik wrote: > Test fixed to accept vm flags. Looks good. So the classPath did not need setting here anyway? I see createTestJvm ends up adding VM and JAVA options, but I don't see classpath in those. This change works for me. Separately I will

Re: RFR: 8316446: 4 sun/management/jdp tests ignore VM flags

2023-10-09 Thread Kevin Walls
On Fri, 6 Oct 2023 19:55:59 GMT, Leonid Mesnik wrote: > The launcher class is fixed. > Tested by tier1 and running test with different VM flags Marked as reviewed by kevinw (Committer). - PR Review: https://git.openjdk.org/jdk/pull/16079#pullrequestreview-1663928691

Re: RFR: 8209595: MonitorVmStartTerminate.java timed out [v2]

2023-10-20 Thread Kevin Walls
can see if this is part of any future failure. > > Other small logging changes so we can see more easily the progress through > the test. Kevin Walls has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes br

Re: RFR: 8209595: MonitorVmStartTerminate.java timed out

2023-10-20 Thread Kevin Walls
On Fri, 6 Oct 2023 19:10:50 GMT, Kevin Walls wrote: > From studying test failures, it looks like the way the test identifies its > related processes is failing. > It checks the mainArgs of a process by attaching, and looks like it > occasionally misses getting a valid match. The

Re: RFR: 8209595: MonitorVmStartTerminate.java timed out [v2]

2023-10-20 Thread Kevin Walls
On Fri, 20 Oct 2023 13:30:49 GMT, Kevin Walls wrote: >> From studying test failures, it looks like the way the test identifies its >> related processes is failing. >> It checks the mainArgs of a process by attaching, and looks like it >> occasionally miss

Integrated: 8209595: MonitorVmStartTerminate.java timed out

2023-10-20 Thread Kevin Walls
On Fri, 6 Oct 2023 19:10:50 GMT, Kevin Walls wrote: > From studying test failures, it looks like the way the test identifies its > related processes is failing. > It checks the mainArgs of a process by attaching, and looks like it > occasionally misses getting a valid match. The

Re: RFR: 8316447: 8 sun/management/jmxremote tests ignore VM flags

2023-10-05 Thread Kevin Walls
On Thu, 5 Oct 2023 16:00:21 GMT, Leonid Mesnik wrote: > Thank you for your review and feedback. I removed private boolean > jmxAgentStarted = false; The changes invocations to createTestJvm are needed > because it added tested flags only. OK thanks. I was observing that we want to call

Re: RFR: 8280743: HSDB "Monitor Cache Dump" command might throw NPE

2023-08-21 Thread Kevin Walls
On Mon, 21 Aug 2023 19:54:59 GMT, Chris Plummer wrote: > ObjectMonitor.object() can be null so we need to defend against it. This bug > was discovered by code inspection while working on > [JDK-8280555](https://bugs.openjdk.org/browse/JDK-8280555). We have no test > for this, and I'm not

Re: RFR: 8314679: SA fails to properly attach to JVM after having just detached from a different JVM

2023-08-23 Thread Kevin Walls
On Tue, 22 Aug 2023 23:22:37 GMT, Chris Plummer wrote: > The CDS archive can change memory locations on different runs of the same JVM > binary. This exposed a long standing bug in FileMapInfo.java. It was caching > addresses that could be different for different JVM processes. As a result, >

Re: RFR: 8312232: Remove sun.jvm.hotspot.runtime.VM.buildLongFromIntsPD() [v2]

2023-08-22 Thread Kevin Walls
On Mon, 21 Aug 2023 21:16:02 GMT, Chris Plummer wrote: >> VM.buildLongFromIntsPD() is not longer used. Remove it. > > Chris Plummer has updated the pull request incrementally with two additional > commits since the last revision: > > - update copyright > - Remove debugging code Marked as

Re: RFR: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table" [v2]

2023-08-24 Thread Kevin Walls
On Thu, 24 Aug 2023 18:08:13 GMT, Mark Sheppard wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Less specific error message, could be ports or other failure.. > > test/jdk/sun/tools/j

Re: RFR: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table" [v3]

2023-08-24 Thread Kevin Walls
also) > checks for "Port already in use", which can be printed by TCPTransport.java. > > Should update its test to check for "Could not bind". > Should limit the retries also. Kevin Walls has updated the pull request incrementally with one additional commit since the last

Re: RFR: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table" [v3]

2023-08-29 Thread Kevin Walls
On Thu, 24 Aug 2023 21:38:41 GMT, Kevin Walls wrote: >> Several tests from test/jdk/sun/tools/jstatd are intermittent. >> >> Port clashes when run at the same time on the same machine have been a >> problem. >> The RMI error "no such object in table" ca

Integrated: 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table"

2023-08-29 Thread Kevin Walls
On Thu, 24 Aug 2023 11:34:13 GMT, Kevin Walls wrote: > Several tests from test/jdk/sun/tools/jstatd are intermittent. > > Port clashes when run at the same time on the same machine have been a > problem. > The RMI error "no such object in table" can mean a reference

Re: RFR: 8314824: Fix serviceability/jvmti/8036666/GetObjectLockCount.java to use vm flags

2023-08-29 Thread Kevin Walls
On Mon, 28 Aug 2023 19:12:04 GMT, Leonid Mesnik wrote: > Arguments were added to the launcher arguments. looks good - Marked as reviewed by kevinw (Committer). PR Review: https://git.openjdk.org/jdk/pull/15454#pullrequestreview-1599925725

Re: RFR: JDK-8319375: test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java runs into OutOfMemoryError: Metaspace on AIX

2023-11-08 Thread Kevin Walls
On Wed, 8 Nov 2023 08:29:52 GMT, Matthias Baesken wrote: > On AIX the test > test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java > runs into this error: > > java.lang.RuntimeException: java.lang.OutOfMemoryError: Metaspace > at >

Integrated: 8198668: MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java still failing

2022-07-07 Thread Kevin Walls
On Tue, 28 Jun 2022 11:21:50 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 he

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

2022-07-07 Thread Kevin Walls
On Wed, 6 Jul 2022 22:38:41 GMT, Serguei Spitsyn wrote: > ...minor questions/comments... Hi Serguei, yes updated those comments, thanks! - PR: https://git.openjdk.org/jdk/pull/9309

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

2022-07-07 Thread Kevin Walls
> control. Also re-test isExceeded on failure, as fetching the usage and > isExceeded is a race. > > Logging of more pool stats to better understand failures. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Comment update

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

2022-06-29 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. >> N

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

2022-06-29 Thread Kevin Walls
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 as failing is really important! - Commit messages:

Re: [jdk19] RFR: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Kevin Walls
On Fri, 1 Jul 2022 16:12:17 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on > linux-aarch64. Marked as reviewed by kevinw (Committer). - PR: https://git.openjdk.org/jdk19/pull/100

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

2022-06-28 Thread Kevin Walls
> control. Also re-test isExceeded on failure, as fetching the usage and > isExceeded is a race. > > Logging of more pool stats to better understand failures. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Show log output

RFR: 8198668: MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java still failing

2022-06-28 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, but

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. >> N

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 wa

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 wa

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

2022-06-30 Thread Kevin Walls
> control. Also re-test isExceeded on failure, as fetching the usage and > isExceeded is a race. > > Logging of more pool stats to better understand failures. Kevin Walls has updated the pull request with a new target base due to a merge or a rebase. The pull request now c

Re: RFR: 8289098: clean up ported serviceability/jvmti tests

2022-06-24 Thread Kevin Walls
On Fri, 24 Jun 2022 00:09:50 GMT, Leonid Mesnik wrote: > The fix remove JCK-like run, NSK variables and LoadLibrary exception > handling. The test behavior should remain the same. > > The fix is split into several commits, which might be easier for review. Looks ok to me. -

Re: RFR: 8288599: com/sun/management/OperatingSystemMXBean/TestTotalSwap.java: Expected total swap size ... but getTotalSwapSpaceSize returned ...

2022-06-17 Thread Kevin Walls
On Thu, 16 Jun 2022 00:23:27 GMT, Leonid Mesnik wrote: > The failure is very intermittent and I wasn't able to reproduce it. > > I suspect that the swap might be changed during test execution so I add the > corresponding check. > > If test still fails after fix we should at least exclude

Re: RFR: 8288724: Prevent NullPointerException in serviceability/tmtools/jstack/DaemonThreadTest.java if jstack process fails

2022-06-20 Thread Kevin Walls
On Mon, 20 Jun 2022 08:08:54 GMT, Jaikiran Pai wrote: > Can I please get a review of this test only change which updates the > `DaemonThreadTest` to prevent a NPE when the `jstack` tool launched from the > test fails with a non-zero exit code? Marked as reviewed by kevinw (Committer).

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 wa

Re: RFR: 8292250: Create test for co-located JDI MethodEntry, Step, and Breakpoint events [v3]

2022-08-25 Thread Kevin Walls
On Wed, 24 Aug 2022 05:08:40 GMT, Chris Plummer wrote: >> We currently have no tests for co-located MethodEntry, Step, and Breakpoint >> events. We should make sure they are being properly co-located as described >> in the JDI spec, and also do special test cases for >>

Re: RFR: 8282410: Remove SA ProcDebugger support

2022-08-25 Thread Kevin Walls
On Thu, 25 Aug 2022 03:31:03 GMT, Chris Plummer wrote: > SA has the following source directory: > > src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/proc > > However, there are no references to any classes in this directory. There used > to be a reference to ProcDebuggerLocal, but

Re: RFR: 8292880: Improve debuggee logging for com/sun/jdi/ClassUnloadEventTest.java [v2]

2022-08-25 Thread Kevin Walls
On Wed, 24 Aug 2022 20:03:48 GMT, Chris Plummer wrote: >> In order to help debug >> [JDK-8292879](https://bugs.openjdk.org/browse/JDK-8292879) failures, turn on >> class unload tracing in the debuggee and also have the debugger dump all the >> debuggee output. See the CR for example output. >

Re: RFR: JDK-8292778: EncodingSupport_md.c convertUtf8ToPlatformString wrong placing of free

2022-08-23 Thread Kevin Walls
On Tue, 23 Aug 2022 13:59:53 GMT, Matthias Baesken wrote: > There seems to be a case where EncodingSupport_md.c > convertUtf8ToPlatformString might leak memory because of a wrong placing of > free.. Marked as reviewed by kevinw (Committer). - PR:

Re: RFR: 8292250: Create test for co-located JDI MethodEntry, Step, and Breakpoint events [v4]

2022-08-25 Thread Kevin Walls
On Thu, 25 Aug 2022 15:15:38 GMT, Chris Plummer wrote: >> We currently have no tests for co-located MethodEntry, Step, and Breakpoint >> events. We should make sure they are being properly co-located as described >> in the JDI spec, and also do special test cases for >>

Re: RFR: 8292995: improve the SA page cache

2022-08-30 Thread Kevin Walls
On Mon, 29 Aug 2022 20:13:46 GMT, Chris Plummer wrote: > The page caching support in SA is woefully dated. I think it has stayed the > same for over 20 years when it was originally done for solarix-x86. This code > has been replicated for every port. Currently all ports only have a 16mb >

Re: RFR: 8293037: Remove DebuggerBase.writeBytes() and related code from SA

2022-08-30 Thread Kevin Walls
On Mon, 29 Aug 2022 18:54:58 GMT, Chris Plummer wrote: > DebuggerBase.writeBytes() is not needed. It is only called by a number of > other "write" methods, such as writeJBoolean(), but these methods are never > called, so they can be removed along with writeBytes(). Lastly, writeBytes() >

Re: RFR: 8290909: MemoryPoolMBean/isUsageThresholdExceeded tests failed with "isUsageThresholdExceeded() returned false, and is still false, while threshold = MMMMMMM and used peak = NNNNNNN" [v2]

2022-08-20 Thread Kevin Walls
On Fri, 12 Aug 2022 10:05:39 GMT, Kevin Walls wrote: >> This is test unstable when monitoring CodeHeap pools as they can change >> outside the test's control. >> Attempting more heuristics to sense these unrelated changes just means we >> skip more pools. >> >

Re: RFR: 8292302: Windows GetLastError value overwritten by ThreadLocalStorage::thread

2022-09-03 Thread Kevin Walls
On Fri, 2 Sep 2022 20:33:37 GMT, David Holmes wrote: >> This is an MR which partially reverts JDK-8289091 such that >> JavaThread::threadObj() does not call Thread::current(). >> >> A JVMTI operation could call threadObj() and clear the Windows GetLastError >> value. >> >> Partial, because I

Re: RFR: 8292302: Windows GetLastError value overwritten by ThreadLocalStorage::thread [v2]

2022-09-06 Thread Kevin Walls
On Sat, 3 Sep 2022 11:05:18 GMT, Kevin Walls wrote: >> src/hotspot/share/runtime/javaThread.cpp line 165: >> >>> 163: oop JavaThread::threadObj() const { >>> 164: // Using Thread::current_or_null_safe() here risks that calling >>> threadObj() can >&g

Re: RFR: 8292302: Windows GetLastError value overwritten by ThreadLocalStorage::thread [v2]

2022-09-06 Thread Kevin Walls
hread::print_on_error(), > they aren't connected to the problems seen. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Comment update - Changes: - all: https://git.openjdk.org/jdk/pull/10147/files - new: https://git.op

Re: RFR: 8292250: Create test for co-located JDI MethodEntry, Step, and Breakpoint events [v5]

2022-08-25 Thread Kevin Walls
On Thu, 25 Aug 2022 19:14:21 GMT, Chris Plummer wrote: >> We currently have no tests for co-located MethodEntry, Step, and Breakpoint >> events. We should make sure they are being properly co-located as described >> in the JDI spec, and also do special test cases for >>

Re: RFR: 8293563: [macos-aarch64] SA core file tests failing with sun.jvm.hotspot.oops.UnknownOopException

2022-09-28 Thread Kevin Walls
On Tue, 27 Sep 2022 21:38:43 GMT, Chris Plummer wrote: > JDK-8293563 is due to a macOS bug (or maybe a feature) that is resulting in > the java heap not always being present in the core file. Running with > `-XX:+AlwaysPreTouch` seems to work around this problem. This issue is only > on

Re: RFR: 8294411: SA should provide more useful info when it fails to start up due to "failed to workaround classshareing"

2022-09-27 Thread Kevin Walls
On Tue, 27 Sep 2022 05:16:35 GMT, Chris Plummer wrote: > Sometimes SA fails to startup with the following error message: > > ERROR: failed to workaround classshareing > Unable to open core file > > The code in question is init_classsharing_workaround() in ps_core_common.c. > There a number of

Re: RFR: 8294993: LingeredApp test update [v3]

2022-10-17 Thread Kevin Walls
unnecessary, core/mdmp usually being created in > the current directory. But getCoreFileLocation() performs Files.move() which > takes enough time to not be a no-op. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Show file size for dump

Re: RFR: 8294993: LingeredApp test update [v2]

2022-10-17 Thread Kevin Walls
unnecessary, core/mdmp usually being created in > the current directory. But getCoreFileLocation() performs Files.move() which > takes enough time to not be a no-op. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Reorder loop: success

Re: RFR: 8294993: LingeredApp test update [v2]

2022-10-17 Thread Kevin Walls
On Mon, 17 Oct 2022 11:13:55 GMT, Kevin Walls wrote: >> There are a few changes we can make to better understand the LingeredApp >> test when it goes wrong: >> >> startAppExactJvmOpts() should not try and call finishApp unless the process >> isAlive, that just

Re: RFR: 8294993: LingeredApp test update

2022-10-17 Thread Kevin Walls
On Fri, 14 Oct 2022 18:31:24 GMT, Chris Plummer wrote: >> There are a few changes we can make to better understand the LingeredApp >> test when it goes wrong: >> >> startAppExactJvmOpts() should not try and call finishApp unless the process >> isAlive, that just creates a misleading

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v2]

2022-10-19 Thread Kevin Walls
On Wed, 19 Oct 2022 16:14:16 GMT, Kevin Walls wrote: >> Set the management.properties >> "com.sun.management.jmxremote.serial.filter.pattern" value by default, to >> restrict types that can be deserialized. >> >> Use the example value from

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v2]

2022-10-19 Thread Kevin Walls
On Wed, 19 Oct 2022 16:36:35 GMT, Daniel Fuchs wrote: > Trivially you should probably add `8283093` in the list of bugs that the test > helps verify. Also I see the test is using `Utils.getFreePort()` which is a > recipe for intermittent failures (not something you should change here, >

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v3]

2022-10-19 Thread Kevin Walls
ers / Filters for JMX), plus Subject > which is needed when using authentication. > > The sun/management tests run OK with this change. The existing test > sun/management/jmxremote/startstop/JMXStartStopTest.java will fail if the > filter specified is made too restrictive

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v2]

2022-10-19 Thread Kevin Walls
ers / Filters for JMX), plus Subject > which is needed when using authentication. > > The sun/management tests run OK with this change. The existing test > sun/management/jmxremote/startstop/JMXStartStopTest.java will fail if the > filter specified is made too restrictive

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter

2022-10-19 Thread Kevin Walls
On Fri, 30 Sep 2022 11:00:28 GMT, Kevin Walls wrote: > Set the management.properties > "com.sun.management.jmxremote.serial.filter.pattern" value by default, to > restrict types that can be deserialized. > > Use the example value from the Core Libraries guide (see se

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v3]

2022-10-21 Thread Kevin Walls
On Wed, 19 Oct 2022 17:54:02 GMT, Kevin Walls wrote: >> Set the management.properties >> "com.sun.management.jmxremote.serial.filter.pattern" value by default, to >> restrict types that can be deserialized. >> >> Use the example value from

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v3]

2022-10-21 Thread Kevin Walls
On Tue, 11 Oct 2022 17:48:30 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Additional test with command-line filter setting. > > src/jdk.management.agent/share/c

Re: RFR: 8294993: LingeredApp test update [v4]

2022-10-25 Thread Kevin Walls
On Mon, 17 Oct 2022 20:16:49 GMT, Kevin Walls wrote: >> There are a few changes we can make to better understand the LingeredApp >> test when it goes wrong: >> >> startAppExactJvmOpts() should not try and call finishApp unless the process >> isAlive, that just

Integrated: 8294993: LingeredApp test update

2022-10-25 Thread Kevin Walls
On Fri, 7 Oct 2022 19:54:54 GMT, Kevin Walls wrote: > There are a few changes we can make to better understand the LingeredApp test > when it goes wrong: > > startAppExactJvmOpts() should not try and call finishApp unless the process > isAlive, that just creates a misle

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v3]

2022-10-25 Thread Kevin Walls
On Wed, 19 Oct 2022 17:54:02 GMT, Kevin Walls wrote: >> Set the management.properties >> "com.sun.management.jmxremote.serial.filter.pattern" value by default, to >> restrict types that can be deserialized. >> >> Use the example value from

Re: RFR: 8295810: cleanup debug agent removeThread() api

2022-10-24 Thread Kevin Walls
On Sat, 22 Oct 2022 03:05:07 GMT, Chris Plummer wrote: > The implementation of removeThread() is currently: > > > static void > removeThread(JNIEnv *env, ThreadList *list, jthread thread) > { > ThreadNode *node; > > node = findThread(list, thread); > if (node != NULL) { >

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v4]

2022-10-26 Thread Kevin Walls
ers / Filters for JMX), plus Subject > which is needed when using authentication. > > The sun/management tests run OK with this change. The existing test > sun/management/jmxremote/startstop/JMXStartStopTest.java will fail if the > filter specified is made too restrictive

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v3]

2022-10-26 Thread Kevin Walls
On Tue, 25 Oct 2022 18:16:17 GMT, Serguei Spitsyn wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Additional test with command-line filter setting. > > test/jdk/javax/manageme

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v4]

2022-10-27 Thread Kevin Walls
On Wed, 26 Oct 2022 10:18:28 GMT, Kevin Walls wrote: >> Set the management.properties >> "com.sun.management.jmxremote.serial.filter.pattern" value by default, to >> restrict types that can be deserialized. >> >> Use the example value from

Re: RFR: 8283093: JMX connections should default to using an ObjectInputFilter [v3]

2022-10-25 Thread Kevin Walls
On Tue, 25 Oct 2022 18:31:29 GMT, Serguei Spitsyn wrote: > How was this set of segments to be filtered by default identified? I started with the set of classes given as an example in the Core Libraries guide, https://docs.oracle.com/en/java/javase/19/core/serialization-filtering1.html in the

Re: RFR: 8294993: LingeredApp test update [v2]

2022-10-17 Thread Kevin Walls
On Mon, 17 Oct 2022 19:04:09 GMT, Chris Plummer wrote: > > ./core.22317 4371398656 bytes > > It would be a lot easier to read if this was converted to mb. OK yes, I'd like both... 8-) LingeredApp startup took 3119ms Check for hs_err_pid/core/mdmp files: ./hs_err_pid14641.log 0mb (181706

Re: RFR: 8294993: LingeredApp test update [v4]

2022-10-17 Thread Kevin Walls
unnecessary, core/mdmp usually being created in > the current directory. But getCoreFileLocation() performs Files.move() which > takes enough time to not be a no-op. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Dump file size in mega

Re: RFR: 8294993: LingeredApp test update

2022-10-17 Thread Kevin Walls
On Fri, 14 Oct 2022 18:37:03 GMT, Chris Plummer wrote: >> There are a few changes we can make to better understand the LingeredApp >> test when it goes wrong: >> >> startAppExactJvmOpts() should not try and call finishApp unless the process >> isAlive, that just creates a misleading

Re: RFR: 8293657: sun/management/jmxremote/bootstrap/RmiBootstrapTest.java#id1 failed with "SSLHandshakeException: Remote host terminated the handshake"

2022-09-21 Thread Kevin Walls
On Sun, 18 Sep 2022 12:57:28 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to fix the > intermittent failures noted in https://bugs.openjdk.org/browse/JDK-8293657? > > There are two parts to this fix. One is straightforward fix in the test > configuration

Re: RFR: 8292302: Windows GetLastError value overwritten by ThreadLocalStorage::thread [v2]

2022-09-12 Thread Kevin Walls
On Tue, 6 Sep 2022 08:42:13 GMT, Kevin Walls wrote: >> This is an MR which partially reverts JDK-8289091 such that >> JavaThread::threadObj() does not call Thread::current(). >> >> A JVMTI operation could call threadObj() and clear the Windows GetLastError >> va

Re: RFR: 8292302: Windows GetLastError value overwritten by ThreadLocalStorage::thread [v3]

2022-09-12 Thread Kevin Walls
hread::print_on_error(), > they aren't connected to the problems seen. Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: nits - Changes: - all: https://git.openjdk.org/jdk/pull/10147/files - new: https://git.openjdk.

Re: RFR: 8293218: serviceability/tmtools/jstat/GcNewTest.java fails with "Error in the percent calculation" [v3]

2022-09-12 Thread Kevin Walls
On Fri, 9 Sep 2022 18:22:48 GMT, Chris Plummer wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Clarify that loop is for checking heap not changing. Exception if >> continually chang

Re: RFR: 8293218: serviceability/tmtools/jstat/GcNewTest.java fails with "Error in the percent calculation" [v3]

2022-09-12 Thread Kevin Walls
On Fri, 9 Sep 2022 09:28:38 GMT, Kevin Walls wrote: >> Test update to cope with heap size changing (shrinking) in the early life of >> the test app. >> >> A change in GC timing affects this test which reads eden size and heap size. >> Both eden and heap

Integrated: 8292302: Windows GetLastError value overwritten by ThreadLocalStorage::thread

2022-09-13 Thread Kevin Walls
On Fri, 2 Sep 2022 14:47:35 GMT, Kevin Walls wrote: > This is an MR which partially reverts JDK-8289091 such that > JavaThread::threadObj() does not call Thread::current(). > > A JVMTI operation could call threadObj() and clear the Windows GetLastError > value. > > Parti

  1   2   3   4   5   6   >