Re: RFR: JDK-8260926: Trace resource exhausted events unconditionally [v2]

2021-02-02 Thread Thomas Stuefe
On Wed, 3 Feb 2021 01:43:25 GMT, David Holmes wrote: > Hi Thomas, > > Approval in principle, but changes suggested. > > Thanks, > David Hi David, thanks for looking at this. I changed text and tag as requested. ..Thomas > src/hotspot/share/prims/jvmtiExport.cpp line 1509: > >> 1507: JavaT

Re: RFR: JDK-8260926: Trace resource exhausted events unconditionally [v2]

2021-02-02 Thread Thomas Stuefe
> Analyzing out-of-resource situations in cloud scenarios is no fun. With > CloudFoundry, a JVMTI agent (jvmkill) is hooked up intercepting the jvmti > "resource exhausted" event, then attempts to write up a heap report. That may > fail, e.g. due to bugs in the agent [1], but also because that r

Re: RFR: 8260296: SA's dumpreplaydata fails [v3]

2021-02-02 Thread Igor Ignatyev
On Wed, 27 Jan 2021 08:07:04 GMT, Roland Westrelin wrote: >> I noticed that the SA's dumpreplaydata command fails with: >> >> java.lang.AssertionError: CLHSDB wasn't run successfully: Opening core file, >> please wait... >> hsdb> Exception in thread "main" java.lang.InternalError: ciMetadata do

Re: RFR: 8260296: SA's dumpreplaydata fails [v3]

2021-02-02 Thread Igor Ignatyev
On Wed, 27 Jan 2021 08:07:04 GMT, Roland Westrelin wrote: >> I noticed that the SA's dumpreplaydata command fails with: >> >> java.lang.AssertionError: CLHSDB wasn't run successfully: Opening core file, >> please wait... >> hsdb> Exception in thread "main" java.lang.InternalError: ciMetadata do

RFR: 8248876: LoadObject with bad base address created for exec file on linux

2021-02-02 Thread Yasumasa Suenaga
We could see NPE on `LinuxCDebugger::loadObjectContainingPC` which is used mainly by the clhsdb `findpc` command. (See [JDK-8248876](https://bugs.openjdk.java.net/browse/JDK-8248876) for more details) It is caused by PIE executable handling. Currently we use virtual address of top of PT_LOAD i

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v4]

2021-02-02 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang 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 six additional commits since the last rev

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-02-02 Thread Lin Zang
On Mon, 1 Feb 2021 06:16:34 GMT, Lin Zang wrote: >>> I think if you can avoid the 4th argument by just enabling parallel by >>> default sounds like a good idea. Is there any reason not to use parallel >>> heap dump? Also, I'm not familiar with the terms "compression backends" and >>> "active w

Re: RFR: JDK-8260926: Trace resource exhausted events unconditionally

2021-02-02 Thread David Holmes
On Tue, 2 Feb 2021 11:02:18 GMT, Thomas Stuefe wrote: > Analyzing out-of-resource situations in cloud scenarios is no fun. With > CloudFoundry, a JVMTI agent (jvmkill) is hooked up intercepting the jvmti > "resource exhausted" event, then attempts to write up a heap report. That may > fail, e.

Re: RFR: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Jie Fu
On Tue, 2 Feb 2021 20:46:08 GMT, Alex Menkov wrote: >> Hi all, >> >> com/sun/jdi/JdbOptions.java fails in our ci/cd when jfr is disabled. >> It would be better to fix it. >> >> Thanks. >> Best regards, >> Jie > > Marked as reviewed by amenkov (Reviewer). Thanks @alexmenkov and @plummercj . --

Integrated: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Jie Fu
On Tue, 2 Feb 2021 03:43:29 GMT, Jie Fu wrote: > Hi all, > > com/sun/jdi/JdbOptions.java fails in our ci/cd when jfr is disabled. > It would be better to fix it. > > Thanks. > Best regards, > Jie This pull request has now been integrated. Changeset: a47befc8 Author:Jie Fu URL: http

Re: RFR: 8247514: Improve clhsdb 'findpc' ability to determine what an address points to by improving PointerFinder and PointerLocation classes

2021-02-02 Thread Yasumasa Suenaga
On Sun, 17 Jan 2021 03:57:59 GMT, Chris Plummer wrote: > See the bug for most details. A few notes here about some implementation > details: > > In the `PointerLocation` class, I added more consistency w.r.t. whether or > not a newline is printed. It used to for some address types, but not oth

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

2021-02-02 Thread Daniel D . Daugherty
On Tue, 2 Feb 2021 11:59:08 GMT, Anton Kozlov wrote: >> 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

Re: RFR: 8260431: com/sun/jdi/JdbOptions.java failed with "RuntimeException: 'prop[boo] = >foo<' missing from stdout/stderr"

2021-02-02 Thread Chris Plummer
On Tue, 2 Feb 2021 20:43:29 GMT, Alex Menkov wrote: >> test/jdk/com/sun/jdi/JdbOptions.java line 85: >> >>> 83: private static final String outFilename = >>> UUID.randomUUID().toString() + ".out"; >>> 84: private static final Path outPath = Paths.get(outFilename); >>> 85: private st

Re: RFR: 8260431: com/sun/jdi/JdbOptions.java failed with "RuntimeException: 'prop[boo] = >foo<' missing from stdout/stderr"

2021-02-02 Thread Alex Menkov
On Tue, 2 Feb 2021 20:12:27 GMT, Chris Plummer wrote: >> The test expects debuggee output in jdb output stream. >> But jdb redirects debuggee output asynchronously so sometimes it's >> incomplete or mixed with jdb output. >> The fix updates debuggee to print output to file and read/analyze it af

Re: RFR: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Chris Plummer
On Tue, 2 Feb 2021 03:43:29 GMT, Jie Fu wrote: > Hi all, > > com/sun/jdi/JdbOptions.java fails in our ci/cd when jfr is disabled. > It would be better to fix it. > > Thanks. > Best regards, > Jie Marked as reviewed by cjplummer (Reviewer). - PR: https://git.openjdk.java.net/jdk/p

Re: RFR: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Chris Plummer
On Tue, 2 Feb 2021 20:45:37 GMT, Alex Menkov wrote: >> Special handling for options with commas, quotes and single quotes was added >> many years ago for JFR (as it uses commas inside). The logic there is a bit >> tricky and I didn't want to brake existing functionality when I made some >> cha

Re: RFR: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Alex Menkov
On Tue, 2 Feb 2021 20:34:14 GMT, Alex Menkov wrote: >> Thanks @plummercj for your review. >> >> Let's wait for @alexmenkov 's comments. >> Thanks. > > Special handling for options with commas, quotes and single quotes was added > many years ago for JFR (as it uses commas inside). The logic ther

Re: RFR: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Alex Menkov
On Tue, 2 Feb 2021 03:43:29 GMT, Jie Fu wrote: > Hi all, > > com/sun/jdi/JdbOptions.java fails in our ci/cd when jfr is disabled. > It would be better to fix it. > > Thanks. > Best regards, > Jie Marked as reviewed by amenkov (Reviewer). - PR: https://git.openjdk.java.net/jdk/pul

Re: RFR: 8257988: Remove JNF dependency from libsaproc/MacosxDebuggerLocal.m

2021-02-02 Thread Chris Plummer
On Thu, 28 Jan 2021 22:40:57 GMT, Phil Race wrote: > This removes the JNF dependency from the jdk.hotspot.agent module. > The macro expansions are the same as already used in the Java desktop module > - which actually uses a macro > still but there there are hundreds of uses. > The function of t

Re: RFR: 8260878: com/sun/jdi/JdbOptions.java fails without jfr

2021-02-02 Thread Alex Menkov
On Tue, 2 Feb 2021 04:17:39 GMT, Jie Fu wrote: >> test/jdk/com/sun/jdi/JdbOptions.java line 99: >> >>> 97: test("-connect", >>> 98: >>> "com.sun.jdi.CommandLineLaunch:vmexec=java,options=\"-client\" >>> \"-XX:+PrintVMOptions\"" >>> 99: + " -XX:+IgnoreUnr

Re: RFR: 8260431: com/sun/jdi/JdbOptions.java failed with "RuntimeException: 'prop[boo] = >foo<' missing from stdout/stderr"

2021-02-02 Thread Chris Plummer
On Sat, 30 Jan 2021 00:15:04 GMT, Alex Menkov wrote: > The test expects debuggee output in jdb output stream. > But jdb redirects debuggee output asynchronously so sometimes it's incomplete > or mixed with jdb output. > The fix updates debuggee to print output to file and read/analyze it after

Re: RFR: 8247514: Improve clhsdb 'findpc' ability to determine what an address points to by improving PointerFinder and PointerLocation classes

2021-02-02 Thread Chris Plummer
On Mon, 25 Jan 2021 20:00:41 GMT, Chris Plummer wrote: >> See the bug for most details. A few notes here about some implementation >> details: >> >> In the `PointerLocation` class, I added more consistency w.r.t. whether or >> not a newline is printed. It used to for some address types, but no

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

2021-02-02 Thread Bernhard Urban-Forster
On Tue, 2 Feb 2021 18:23:04 GMT, Gerard Ziemski wrote: >> Anton Kozlov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> support macos_aarch64 in hsdis > > src/hotspot/os/posix/signals_posix.cpp line 1297: > >> 1295: kern_return_t kr; >

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

2021-02-02 Thread Gerard Ziemski
On Tue, 2 Feb 2021 18:52:29 GMT, Gerard Ziemski wrote: >> Anton Kozlov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> support macos_aarch64 in hsdis > > Changes requested by gziemski (Committer). There were bunch of assembly code that

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

2021-02-02 Thread Gerard Ziemski
On Tue, 2 Feb 2021 11:59:08 GMT, Anton Kozlov wrote: >> 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

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out [v2]

2021-02-02 Thread Thomas Stuefe
On Tue, 2 Feb 2021 17:36:32 GMT, Serguei Spitsyn wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unnecessary CreateCoredumpOnCrash > > The update looks good. > I think this is a trivial fix and does not ne

Integrated: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out

2021-02-02 Thread Thomas Stuefe
On Mon, 1 Feb 2021 10:38:30 GMT, Thomas Stuefe wrote: > Hi, > > may I please have reviews for this trivial fix. > > We see timeouts with this test on slow large (memory wise) AIX machines, as > well as large core files. > > This test is a negative test which tests that the VM corectly recogni

RFR: JDK-8260926: Trace resource exhausted events unconditionally

2021-02-02 Thread Thomas Stuefe
Analyzing out-of-resource situations in cloud scenarios is no fun. With CloudFoundry, a JVMTI agent (jvmkill) is hooked up intercepting the jvmti "resource exhausted" event, then attempts to write up a heap report. That may fail, e.g. due to bugs in the agent [1], but also because that report ru

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out [v2]

2021-02-02 Thread Serguei Spitsyn
On Tue, 2 Feb 2021 12:00:00 GMT, Thomas Stuefe wrote: >> Hi, >> >> may I please have reviews for this trivial fix. >> >> We see timeouts with this test on slow large (memory wise) AIX machines, as >> well as large core files. >> >> This test is a negative test which tests that the VM corectly

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out [v2]

2021-02-02 Thread Daniel D . Daugherty
On Tue, 2 Feb 2021 14:52:50 GMT, Daniel D. Daugherty wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unnecessary CreateCoredumpOnCrash > > Thumbs up! Thanks for taking care of this. I think this is a trivi

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out [v2]

2021-02-02 Thread Daniel D . Daugherty
On Tue, 2 Feb 2021 12:00:00 GMT, Thomas Stuefe wrote: >> Hi, >> >> may I please have reviews for this trivial fix. >> >> We see timeouts with this test on slow large (memory wise) AIX machines, as >> well as large core files. >> >> This test is a negative test which tests that the VM corectly

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

2021-02-02 Thread Alan Hayward
On Tue, 2 Feb 2021 11:56:12 GMT, Vladimir Kempik wrote: > > > > Hello, hsdis is a separate out-of-tree project and is not part of this > > > > jep. > > > > > > > > > Unless there's something I'm missing it only requires a few lines of > > > change to src/utils/hsdis/makefile (it already has s

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out [v2]

2021-02-02 Thread Thomas Stuefe
On Tue, 2 Feb 2021 11:20:30 GMT, Serguei Spitsyn wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unnecessary CreateCoredumpOnCrash > > Hi Thomas, > The fix looks good. Thank you fixing it. > I've submitted

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out [v2]

2021-02-02 Thread Thomas Stuefe
> Hi, > > may I please have reviews for this trivial fix. > > We see timeouts with this test on slow large (memory wise) AIX machines, as > well as large core files. > > This test is a negative test which tests that the VM corectly recognizes an > error condition and aborts. Code goes through

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

2021-02-02 Thread Vladimir Kempik
On Tue, 2 Feb 2021 11:14:12 GMT, Vladimir Kempik wrote: > > > > Hello, hsdis is a separate out-of-tree project and is not part of this > > > > jep. > > > > > > > > > Unless there's something I'm missing it only requires a few lines of > > > change to src/utils/hsdis/makefile (it already has s

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

2021-02-02 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 [v6]

2021-02-02 Thread Vladimir Kempik
On Mon, 1 Feb 2021 14:06:32 GMT, Magnus Ihse Bursie wrote: >>> Hello, hsdis is a separate out-of-tree project and is not part of this jep. >> >> Unless there's something I'm missing it only requires a few lines of change >> to src/utils/hsdis/makefile (it already has support for macos x86_64) >

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out

2021-02-02 Thread Serguei Spitsyn
On Mon, 1 Feb 2021 10:38:30 GMT, Thomas Stuefe wrote: > Hi, > > may I please have reviews for this trivial fix. > > We see timeouts with this test on slow large (memory wise) AIX machines, as > well as large core files. > > This test is a negative test which tests that the VM corectly recogni

Re: RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out

2021-02-02 Thread David Holmes
On Mon, 1 Feb 2021 10:38:30 GMT, Thomas Stuefe wrote: > Hi, > > may I please have reviews for this trivial fix. > > We see timeouts with this test on slow large (memory wise) AIX machines, as > well as large core files. > > This test is a negative test which tests that the VM corectly recogni

RFR: JDK-8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out

2021-02-02 Thread Thomas Stuefe
Hi, may I please have reviews for this trivial fix. We see timeouts with this test on slow large (memory wise) AIX machines, as well as large core files. This test is a negative test which tests that the VM corectly recognizes an error condition and aborts. Code goes through jni_FatalError()->