Re: RFR: 8313854: Some tests in serviceability area fail on localized Windows platform [v4]

2023-08-10 Thread Kimura Yukihiro
On Tue, 8 Aug 2023 23:43:00 GMT, Kimura Yukihiro wrote: >> I would like to fix this issue >> because the svc jtreg test does not pass on localized Windows platform. >> Testing: >> all serviceability area tests (jdk_svc group). >> >> Could anyone review the fix please? >> >> Thanks, >> Kimura

Re: RFR: JDK-8313670: Simplify shared lib name handling code in some tests [v4]

2023-08-10 Thread Matthias Baesken
> There is coding e.g. in > https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/jfr/event/runtime/TestNativeLibrariesEvent.java#L72 > that deals with shared lib naming on different OS. > This code should be simplified. Matthias Baesken has updated the pull request incrementally with one additi

Re: RFR: JDK-8313670: Simplify shared lib name handling code in some tests [v3]

2023-08-10 Thread Matthias Baesken
On Wed, 9 Aug 2023 11:06:04 GMT, Matthias Baesken wrote: >> There is coding e.g. in >> https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/jfr/event/runtime/TestNativeLibrariesEvent.java#L72 >> that deals with shared lib naming on different OS. >> This code should be simplified. > > Matthias

Integrated: JDK-8313670: Simplify shared lib name handling code in some tests

2023-08-10 Thread Matthias Baesken
On Fri, 4 Aug 2023 09:59:41 GMT, Matthias Baesken wrote: > There is coding e.g. in > https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/jfr/event/runtime/TestNativeLibrariesEvent.java#L72 > that deals with shared lib naming on different OS. > This code should be simplified. This pull reques

Re: RFR: JDK-8313670: Simplify shared lib name handling code in some tests [v4]

2023-08-10 Thread David Holmes
On Thu, 10 Aug 2023 07:44:58 GMT, Matthias Baesken wrote: >> There is coding e.g. in >> https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/jfr/event/runtime/TestNativeLibrariesEvent.java#L72 >> that deals with shared lib naming on different OS. >> This code should be simplified. > > Matthias

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v2]

2023-08-10 Thread Yi Yang
> This is a follow-up patch of #13667. verifyHeapDump is duplicated in several > tests, this patch tries to consolidate them into one method. Yi Yang has updated the pull request incrementally with one additional commit since the last revision: fix TestHeapDumpForInvokDynamic -

Re: RFR: 8313997: The jdi/ListeningConnector/startListening/startlis001 may fail if the hosts file is modified

2023-08-10 Thread Daniel Fuchs
On Wed, 9 Aug 2023 07:46:58 GMT, Sergey Bylokhov wrote: > The test uses this code to create a list of valid addresses for the localhost: > > String hostname = "localhost"; > List validAddresses = new LinkedList<>(); > validAddresses.add(hostname); > Arrays.stream(

RFR: 8314117: RISC-V: Incorrect VMReg encoding in RISCV64Frame.java

2023-08-10 Thread Feilong Jiang
Hi, this patch fixes a VMReg encoding issue in `RISCV64Frame.java`. As the VMReg has two slots in a 64-bit VM, the encoding of `fp` should be `8 << 1` instead of `8`. Testing: - [x] tier1 with release build - [ ] tier2 with release build - [ ] tier3 with release build - Commit mess

Integrated: 8313654: Test WaitNotifySuspendedVThreadTest.java timed out

2023-08-10 Thread Leonid Mesnik
On Tue, 8 Aug 2023 18:50:25 GMT, Leonid Mesnik wrote: > Test might times out if it suspend thread before it starts breakpoint event > handler. > The fix is to replace sleep with better synchronization and suspend virtual > thread only when it runs native code. > > Also, the completed monitor i

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v2]

2023-08-10 Thread Kevin Walls
On Thu, 10 Aug 2023 09:41:29 GMT, Yi Yang wrote: >> This is a follow-up patch of #13667. verifyHeapDump is duplicated in several >> tests, this patch tries to consolidate them into one method. > > Yi Yang has updated the pull request incrementally with one additional commit > since the last rev

Re: RFR: 8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java sometimes times out on aarch64

2023-08-10 Thread Kevin Walls
On Mon, 7 Aug 2023 20:17:21 GMT, Chris Plummer wrote: > Make sure when walking the stack that the "sender" frame is not at a lower or > the same address as the current frame, which can result in an infinite loop. > > Tested with tier1 and stress testing sun/tools/jhsdb and > hotspot/jtreg/serv

Re: RFR: 8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java sometimes times out on aarch64

2023-08-10 Thread Serguei Spitsyn
On Mon, 7 Aug 2023 20:17:21 GMT, Chris Plummer wrote: > Make sure when walking the stack that the "sender" frame is not at a lower or > the same address as the current frame, which can result in an infinite loop. > > Tested with tier1 and stress testing sun/tools/jhsdb and > hotspot/jtreg/serv

Re: RFR: 8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java sometimes times out on aarch64

2023-08-10 Thread Andrew Haley
On Mon, 7 Aug 2023 20:17:21 GMT, Chris Plummer wrote: > Make sure when walking the stack that the "sender" frame is not at a lower or > the same address as the current frame, which can result in an infinite loop. > > Tested with tier1 and stress testing sun/tools/jhsdb and > hotspot/jtreg/serv

Re: RFR: 8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java sometimes times out on aarch64

2023-08-10 Thread Chris Plummer
On Thu, 10 Aug 2023 17:01:30 GMT, Kevin Walls wrote: > Looks good to me, although do you think it could return null rather than > throw a RuntimeException? Concerned we might not always want the Tool to fail > and end there. I chose throwing an exception, because this is what more commonly hap

Re: RFR: 8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java sometimes times out on aarch64

2023-08-10 Thread Chris Plummer
On Thu, 10 Aug 2023 18:11:02 GMT, Andrew Haley wrote: > I wonder what triggers this problem. Maybe there's an underlying bug, or > maybe it's just to do with AArch64's weakly-consistent memory model. Yes, you are correct, and I already filed [JDK-8313800](https://bugs.openjdk.org/browse/JDK-83

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v2]

2023-08-10 Thread Chris Plummer
On Thu, 10 Aug 2023 09:41:29 GMT, Yi Yang wrote: >> This is a follow-up patch of #13667. verifyHeapDump is duplicated in several >> tests, this patch tries to consolidate them into one method. > > Yi Yang has updated the pull request incrementally with one additional commit > since the last rev

Re: RFR: 8313854: Some tests in serviceability area fail on localized Windows platform [v4]

2023-08-10 Thread Chris Plummer
On Thu, 10 Aug 2023 07:17:04 GMT, Kimura Yukihiro wrote: > Can I type "integrate" or should I wait until some labels are added on JBS? I added the `noreg-self` label, which means it is test bug, and assigned the CR to you. You can integrate now. - PR Comment: https://git.openjdk.o

Re: RFR: 8313997: The jdi/ListeningConnector/startListening/startlis001 may fail if the hosts file is modified

2023-08-10 Thread Sergey Bylokhov
On Wed, 9 Aug 2023 07:46:58 GMT, Sergey Bylokhov wrote: > The test uses this code to create a list of valid addresses for the localhost: > > String hostname = "localhost"; > List validAddresses = new LinkedList<>(); > validAddresses.add(hostname); > Arrays.stream(

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v2]

2023-08-10 Thread Alex Menkov
On Thu, 10 Aug 2023 09:41:29 GMT, Yi Yang wrote: >> This is a follow-up patch of #13667. verifyHeapDump is duplicated in several >> tests, this patch tries to consolidate them into one method. > > Yi Yang has updated the pull request incrementally with one additional commit > since the last rev

RFR: 8313357: Revisit requiring SA tests on OSX to either run as root or use sudo

2023-08-10 Thread Chris Plummer
On OSX, don't require that sudo be used to launch SA tools if developer mode is enabled. More details are in the CR. Due to this change, the following tests are no longer being skipped if the host has developer mode is enabled. They previously required running as root because if sudo was used

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v2]

2023-08-10 Thread Yi Yang
On Thu, 10 Aug 2023 09:41:29 GMT, Yi Yang wrote: >> This is a follow-up patch of #13667. verifyHeapDump is duplicated in several >> tests, this patch tries to consolidate them into one method. > > Yi Yang has updated the pull request incrementally with one additional commit > since the last rev

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v3]

2023-08-10 Thread Yi Yang
> This is a follow-up patch of #13667. verifyHeapDump is duplicated in several > tests, this patch tries to consolidate them into one method. Yi Yang has updated the pull request incrementally with one additional commit since the last revision: review from Alex - Changes: - al

Re: RFR: 8311775: [TEST] duplicate verifyHeapDump in several tests [v2]

2023-08-10 Thread Yi Yang
On Thu, 10 Aug 2023 19:29:27 GMT, Alex Menkov wrote: >> Yi Yang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix TestHeapDumpForInvokDynamic > > test/hotspot/jtreg/serviceability/sa/TestHeapDumpForInvokeDynamic.java line > 40: > >>

Re: RFR: 8313357: Revisit requiring SA tests on OSX to either run as root or use sudo

2023-08-10 Thread David Holmes
On Fri, 11 Aug 2023 01:49:57 GMT, Chris Plummer wrote: > On OSX, don't require that sudo be used to launch SA tools if developer mode > is enabled. More details are in the CR. > > Due to this change, the following tests are no longer being skipped if the > host has developer mode is enabled.