Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v5]

2021-03-09 Thread Yasumasa Suenaga
On Wed, 10 Mar 2021 05:11:30 GMT, Vipin Sharma wrote: >> JDK-8261095: Add test for clhsdb "symbol" command > > Vipin Sharma has updated the pull request incrementally with one additional > commit since the last revision: > > Updated formatting and grammer changes Marked as reviewed by ysuena

RFR: 8263326: Remove ReceiverTypeData check from serviceability/sa/TestPrintMdo.java

2021-03-09 Thread Chris Plummer
See CR for a description of why this change is needed. - Commit messages: - Don't check for ReceiverTypeData in the printmdo output. Changes: https://git.openjdk.java.net/jdk/pull/2905/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2905&range=00 Issue: https://bugs.o

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v3]

2021-03-09 Thread Chris Plummer
On Wed, 10 Mar 2021 04:54:03 GMT, Vipin Sharma wrote: >> After moving the filter to the next line also can not fit this in one line. >> In addition to the filter, moving all characters starting from "new >> RuntimeException(" also goes till 126 char. >> Following is one suggestion, does it l

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v5]

2021-03-09 Thread Chris Plummer
On Wed, 10 Mar 2021 05:11:30 GMT, Vipin Sharma wrote: >> JDK-8261095: Add test for clhsdb "symbol" command > > Vipin Sharma has updated the pull request incrementally with one additional > commit since the last revision: > > Updated formatting and grammer changes Marked as reviewed by cjplum

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v5]

2021-03-09 Thread Vipin Sharma
> JDK-8261095: Add test for clhsdb "symbol" command Vipin Sharma has updated the pull request incrementally with one additional commit since the last revision: Updated formatting and grammer changes - Changes: - all: https://git.openjdk.java.net/jdk/pull/2863/files - new: htt

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v4]

2021-03-09 Thread Vipin Sharma
> JDK-8261095: Add test for clhsdb "symbol" command Vipin Sharma has updated the pull request incrementally with one additional commit since the last revision: Moving filter call to next line for better formatting - Changes: - all: https://git.openjdk.java.net/jdk/pull/2863/fil

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v3]

2021-03-09 Thread Vipin Sharma
On Wed, 10 Mar 2021 04:49:27 GMT, Vipin Sharma wrote: >> test/hotspot/jtreg/serviceability/sa/ClhsdbSymbol.java line 68: >> >>> 66: .map(addresses -> >>> addresses[1]) >>> 67: .orElseThro

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v3]

2021-03-09 Thread Vipin Sharma
On Wed, 10 Mar 2021 04:30:57 GMT, Chris Plummer wrote: >> Vipin Sharma has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Started using orElseThrow and removed null check following this > > test/hotspot/jtreg/serviceability/sa/ClhsdbSymbol.

Re: RFR: 8259070: Add jcmd option to dump CDS [v3]

2021-03-09 Thread Ioi Lam
On Tue, 9 Mar 2021 21:50:25 GMT, Yumin Qi wrote: >> Hi, Please review >> >> Added jcmd option for dumping CDS archive during application runtime. >> Before this change, user has to dump shared archive in two steps: first run >> application with >> `java -XX:DumpLoadedClassList= ` >>

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v3]

2021-03-09 Thread Chris Plummer
On Wed, 10 Mar 2021 03:48:29 GMT, Vipin Sharma wrote: >> JDK-8261095: Add test for clhsdb "symbol" command > > Vipin Sharma has updated the pull request incrementally with one additional > commit since the last revision: > > Started using orElseThrow and removed null check following this I d

Re: RFR: JDK-8261095: Add test for clhsdb "symbol" command [v3]

2021-03-09 Thread Vipin Sharma
> JDK-8261095: Add test for clhsdb "symbol" command Vipin Sharma has updated the pull request incrementally with one additional commit since the last revision: Started using orElseThrow and removed null check following this - Changes: - all: https://git.openjdk.java.net/jdk/pul

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v5]

2021-03-09 Thread Serguei Spitsyn
On Wed, 10 Mar 2021 02:16:17 GMT, Daniel D. Daugherty wrote: >> David Holmes has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 10 additional >> c

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v5]

2021-03-09 Thread David Holmes
On 10/03/2021 12:19 pm, Daniel D.Daugherty wrote: On Wed, 10 Mar 2021 00:57:40 GMT, David Holmes wrote: ObjectMonitors can only be used by JavaThreads (modulo some interactions with hashcodes and deflation) but we use "Thread*" almost everywhere mainly due to use of TRAPS (and TRAPS will its

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v5]

2021-03-09 Thread Daniel D . Daugherty
On Wed, 10 Mar 2021 00:57:40 GMT, David Holmes wrote: >> ObjectMonitors can only be used by JavaThreads (modulo some interactions >> with hashcodes and deflation) but we use "Thread*" almost everywhere mainly >> due to use of TRAPS (and TRAPS will itself use JavaThread once JDK-8252685 >> is d

Re: RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method [v3]

2021-03-09 Thread Chris Plummer
> Many tests run `LingeredApp`, get its stack with `jstack`, and then look for > `LingeredApp.main` in the output, which should appear in the stack trace of > the main thread. Usually this works fine since the main thread is in a loop, > and usually blocked in `Thread.sleep()`. However, during t

Re: RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method [v2]

2021-03-09 Thread Chris Plummer
On Wed, 10 Mar 2021 01:04:31 GMT, Serguei Spitsyn wrote: >> Chris Plummer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use onSpinWait() instead of sleep(), and check for BLOCKED thread state. > > Marked as reviewed by sspitsyn (Review

Re: RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method [v2]

2021-03-09 Thread Serguei Spitsyn
On Tue, 9 Mar 2021 18:13:09 GMT, Leonid Mesnik wrote: >> Chris Plummer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use onSpinWait() instead of sleep(), and check for BLOCKED thread state. > > Marked as reviewed by lmesnik (Committer)

Re: RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method [v2]

2021-03-09 Thread Serguei Spitsyn
On Tue, 9 Mar 2021 07:27:26 GMT, Chris Plummer wrote: >> Many tests run `LingeredApp`, get its stack with `jstack`, and then look for >> `LingeredApp.main` in the output, which should appear in the stack trace of >> the main thread. Usually this works fine since the main thread is in a loop, >

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v5]

2021-03-09 Thread David Holmes
> ObjectMonitors can only be used by JavaThreads (modulo some interactions with > hashcodes and deflation) but we use "Thread*" almost everywhere mainly due to > use of TRAPS (and TRAPS will itself use JavaThread once JDK-8252685 is done). > Also some uses of TRAPS in the API's are wrong as, for

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v4]

2021-03-09 Thread David Holmes
Hi Serguei, Thanks for taking a look. On 10/03/2021 9:53 am, Serguei Spitsyn wrote: On Tue, 9 Mar 2021 18:52:27 GMT, Chris Plummer wrote: David Holmes has updated the pull request incrementally with three additional commits since the last revision: - Fix typo - Fixed up BiasedLocking c

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v4]

2021-03-09 Thread Serguei Spitsyn
On Fri, 5 Mar 2021 04:59:02 GMT, David Holmes wrote: >> ObjectMonitors can only be used by JavaThreads (modulo some interactions >> with hashcodes and deflation) but we use "Thread*" almost everywhere mainly >> due to use of TRAPS (and TRAPS will itself use JavaThread once JDK-8252685 >> is do

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v4]

2021-03-09 Thread Serguei Spitsyn
On Tue, 9 Mar 2021 18:52:27 GMT, Chris Plummer wrote: >> David Holmes has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Fix typo >> - Fixed up BiasedLocking code in ObjectSynchronizer::enter >> - iFixed alignment in macro > > JVMTI c

Integrated: 8263140: Japanese chars garble in console window in HSDB

2021-03-09 Thread Yasumasa Suenaga
On Sun, 7 Mar 2021 07:32:17 GMT, Yasumasa Suenaga wrote: > We can command line debugger via "Windows" -> "Console" menu on HSDB. If the > command shows error message in localized string (e.g. Japanese), it might > garble as following: > > ![garbled](https://user-images.githubusercontent.com/74

Integrated: 8262520: Add SA Command Line Debugger support to connect to debug server

2021-03-09 Thread Yasumasa Suenaga
On Mon, 1 Mar 2021 07:31:04 GMT, Yasumasa Suenaga wrote: > `attach` command on CLHSDB supports to attach live process (PID) and > coredump, but it cannot connect to debug server. CLHSDB does not have a > command to connect to debug server. > > Other jhsdb commands (jstack, jmap, etc...) can co

Re: RFR(S) : 8246494 : introduce vm.flagless at-requires property

2021-03-09 Thread Igor Ignatyev
RFR got migrated to github as https://github.com/openjdk/jdk/pull/2800 -- Igor On Jun 5, 2020, at 9:10 AM, Igor Ignatyev mailto:igor.ignat...@oracle.com>> wrote: Hi Per, you are reading this correctly, make TEST=test/hotspot/jtreg/gc/z/TestSmallHeap.java JTREG="VM_OPTIONS=-XX:+UseZGC" won't

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v4]

2021-03-09 Thread David Holmes
On 10/03/2021 4:55 am, Chris Plummer wrote: On Fri, 5 Mar 2021 04:59:02 GMT, David Holmes wrote: ObjectMonitors can only be used by JavaThreads (modulo some interactions with hashcodes and deflation) but we use "Thread*" almost everywhere mainly due to use of TRAPS (and TRAPS will itself use

Re: RFR: 8259070: Add jcmd option to dump CDS [v3]

2021-03-09 Thread Yumin Qi
> Hi, Please review > > Added jcmd option for dumping CDS archive during application runtime. > Before this change, user has to dump shared archive in two steps: first run > application with > `java -XX:DumpLoadedClassList= ` > to collect shareable class names and saved in file `` ,

Integrated: 8262486: Merge trivial JDWP agent changes from the loom repo to the jdk repo

2021-03-09 Thread Chris Plummer
On Wed, 3 Mar 2021 20:17:04 GMT, Chris Plummer wrote: > In the loom repo there are a number of trivial changes to the JDWP agent that > are not loom specific. Moving them to the jdk repo will make future merges > simpler, along with making it easier to get a diff of the important > differences

Re: RFR: 8263140: Japanese chars garble in console window in HSDB [v3]

2021-03-09 Thread Ioi Lam
On Tue, 9 Mar 2021 00:54:25 GMT, Yasumasa Suenaga wrote: >> We can command line debugger via "Windows" -> "Console" menu on HSDB. If the >> command shows error message in localized string (e.g. Japanese), it might >> garble as following: >> >> ![garbled](https://user-images.githubusercontent.c

Re: RFR: 8263140: Japanese chars garble in console window in HSDB [v3]

2021-03-09 Thread Chris Plummer
On Tue, 9 Mar 2021 00:54:25 GMT, Yasumasa Suenaga wrote: >> We can command line debugger via "Windows" -> "Console" menu on HSDB. If the >> command shows error message in localized string (e.g. Japanese), it might >> garble as following: >> >> ![garbled](https://user-images.githubusercontent.c

Re: RFR: 8259070: Add jcmd option to dump CDS [v2]

2021-03-09 Thread Yumin Qi
> Hi, Please review > > Added jcmd option for dumping CDS archive during application runtime. > Before this change, user has to dump shared archive in two steps: first run > application with > `java -XX:DumpLoadedClassList= ` > to collect shareable class names and saved in file `` ,

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v4]

2021-03-09 Thread Chris Plummer
On Fri, 5 Mar 2021 04:59:02 GMT, David Holmes wrote: >> ObjectMonitors can only be used by JavaThreads (modulo some interactions >> with hashcodes and deflation) but we use "Thread*" almost everywhere mainly >> due to use of TRAPS (and TRAPS will itself use JavaThread once JDK-8252685 >> is do

Re: RFR: 8263140: Japanese chars garble in console window in HSDB [v3]

2021-03-09 Thread Phil Race
On Tue, 9 Mar 2021 00:54:25 GMT, Yasumasa Suenaga wrote: >> We can command line debugger via "Windows" -> "Console" menu on HSDB. If the >> command shows error message in localized string (e.g. Japanese), it might >> garble as following: >> >> ![garbled](https://user-images.githubusercontent.c

Re: RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method [v2]

2021-03-09 Thread Leonid Mesnik
On Tue, 9 Mar 2021 07:27:26 GMT, Chris Plummer wrote: >> Many tests run `LingeredApp`, get its stack with `jstack`, and then look for >> `LingeredApp.main` in the output, which should appear in the stack trace of >> the main thread. Usually this works fine since the main thread is in a loop, >

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v21]

2021-03-09 Thread Anton Kozlov
On Mon, 1 Mar 2021 10:31:19 GMT, Andrew Haley wrote: >> Anton Kozlov has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Merge remote-tracking branch 'origin/jdk/jdk-macos' into jdk-macos >> - Minor fixes > > src/hotspot/cpu/aarch64/globa

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v12]

2021-03-09 Thread Anton Kozlov
On Tue, 9 Feb 2021 09:23:50 GMT, Stefan Karlsson wrote: >> Anton Kozlov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update signal handler part for debugger > > src/hotspot/share/runtime/thread.cpp line 2515: > >> 2513: void JavaThre

Re: RFR: 8262520: Add SA Command Line Debugger support to connect to debug server [v6]

2021-03-09 Thread Kevin Walls
On Fri, 5 Mar 2021 07:33:06 GMT, Yasumasa Suenaga wrote: >> `attach` command on CLHSDB supports to attach live process (PID) and >> coredump, but it cannot connect to debug server. CLHSDB does not have a >> command to connect to debug server. >> >> Other jhsdb commands (jstack, jmap, etc...) c

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v12]

2021-03-09 Thread Anton Kozlov
On Tue, 9 Feb 2021 09:12:13 GMT, Stefan Karlsson wrote: >> Anton Kozlov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update signal handler part for debugger > > src/hotspot/share/runtime/thread.hpp line 848: > >> 846: void init_wx(

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v24]

2021-03-09 Thread Anton Kozlov
> Please review the implementation of JEP 391: macOS/AArch64 Port. > > It's heavily based on existing ports to linux/aarch64, macos/x86_64, and > windows/aarch64. > > Major changes are in: > * src/hotspot/cpu/aarch64: support of the new calling convention (subtasks > JDK-8253817, JDK-8253818)

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v12]

2021-03-09 Thread Anton Kozlov
On Tue, 9 Feb 2021 09:06:26 GMT, Stefan Karlsson wrote: >> Anton Kozlov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update signal handler part for debugger > > src/hotspot/share/runtime/threadWXSetters.hpp line 28: > >> 26: #define

Re: RFR: 8262386: resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java timed out [v3]

2021-03-09 Thread Lin Zang
> 8262386: resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java timed > out Lin Zang has updated the pull request incrementally with one additional commit since the last revision: Revert "reduce memory consumption" This reverts commit 70e43ddd453724ce36bf729fa6489c0027957b8e. -

Re: RFR: 8262386: resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java timed out

2021-03-09 Thread Lin Zang
On Fri, 5 Mar 2021 11:05:57 GMT, Lin Zang wrote: >> Hi Chris, >> Thanks a lot, I am still wip to reduce the memory consumption. So I think >> you could help review after my next update :) >> >> BRs, >> Lin > > Update a new patch that reduce the memory consumption issue. > As mentioned in the CR

Re: RFR: 8243455: Many SA tests can fail due to trying to get the stack trace of an active method [v2]

2021-03-09 Thread Yasumasa Suenaga
On Tue, 9 Mar 2021 07:27:26 GMT, Chris Plummer wrote: >> Many tests run `LingeredApp`, get its stack with `jstack`, and then look for >> `LingeredApp.main` in the output, which should appear in the stack trace of >> the main thread. Usually this works fine since the main thread is in a loop, >

Re: RFR: 8262271: SA: Add new stress test that tests getting the stack trace of an active thread [v2]

2021-03-09 Thread Yasumasa Suenaga
On Tue, 9 Mar 2021 07:17:28 GMT, Chris Plummer wrote: >> This a new test that runs jstack on a process that is busy doing things. It >> runs jstack 4 times as the process is starting up. > > Chris Plummer has updated the pull request incrementally with one additional > commit since the last rev

Re: RFR: 8262001: java/lang/management/ThreadMXBean/ResetPeakThreadCount.java failed with "RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8"

2021-03-09 Thread Daniel Fuchs
On Tue, 9 Mar 2021 01:31:33 GMT, Alex Menkov wrote: > The fix updates ResetPeakThreadCount.java test - increases number of threads, > but relaxes conditions so start/termination of system threads don't cause > failures. > Additional changes: > - store threads in a list instead of array (we need

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v3]

2021-03-09 Thread David Holmes
On 9/03/2021 7:58 pm, Doug Simon wrote: On Thu, 4 Mar 2021 23:37:27 GMT, Daniel D. Daugherty wrote: David Holmes has updated the pull request incrementally with one additional commit since the last revision: More pointer declaration style fixups src/jdk.internal.vm.compiler/share/classe

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v3]

2021-03-09 Thread Doug Simon
On Thu, 4 Mar 2021 23:37:27 GMT, Daniel D. Daugherty wrote: >> David Holmes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> More pointer declaration style fixups > > src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot