Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread David Holmes
On Fri, 11 Nov 2022 06:26:19 GMT, Christoph Langer wrote: >> This small change fixes a warning that may pop up during runtime. May I >> please request reviews? Thank you! > > Maybe you could also call "bin/java -Xcheck:jni > -agentlib:jdwp=transport=dt_socket,server=y,suspend=n -version" which

Re: RFR: 8296089: Remove debug agent code for special handling of Thread.resume() [v3]

2022-11-10 Thread Alan Bateman
On Thu, 10 Nov 2022 20:58:36 GMT, Chris Plummer wrote: >> The debug agent sets a breakpoint in Thread.resume() so it can prevent the >> debugger from suspending threads while in the resume call: >> >> /* >> * Track the resuming thread by marking it as being within >>

Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread Christoph Langer
On Thu, 10 Nov 2022 09:02:02 GMT, Lutz Schmidt wrote: > This small change fixes a warning that may pop up during runtime. May I > please request reviews? Thank you! Maybe you could also call "bin/java -Xcheck:jni -agentlib:jdwp=transport=dt_socket,server=y,suspend=n -version" which would show

Re: RFR: 8295315: [REDO] 8276687 Remove support for JDK 1.4.1 PerfData shared memory files

2022-11-10 Thread David Holmes
On Thu, 10 Nov 2022 22:42:10 GMT, Ioi Lam wrote: > Here's redo for https://github.com/openjdk/jdk/pull/10687. This PR has two > commits: > - 739b79afb1965b625b2002187ac3fd43f385a639 is the same as in the original PR > - 78455c024ec5c00f1a0ce6c0e13df477c3063fe1 fixes the bug in the original PR. >

Re: RFR: 8295861: get rid of list argument in debug agent's removeNode() API

2022-11-10 Thread Alex Menkov
On Fri, 11 Nov 2022 03:17:58 GMT, Chris Plummer wrote: > Get rid of `list` argument in debug agent's `removeNode()` API. The list is > stored in the node, so no need to pass it in. Marked as reviewed by amenkov (Reviewer). - PR: https://git.openjdk.org/jdk/pull/11101

Re: RFR: 8296546: Add @spec tags to API

2022-11-10 Thread Chris Plummer
On Thu, 10 Nov 2022 01:10:13 GMT, Jonathan Gibbons wrote: > Please review a "somewhat automated" change to insert `@spec` tags into doc > comments, as appropriate, to leverage the recent new javadoc feature to > generate a new page listing the references to all external specifications > listed

Re: RFR: 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails [v4]

2022-11-10 Thread Chris Plummer
On Thu, 10 Nov 2022 21:30:54 GMT, Leonid Mesnik wrote: >> Change Thread.resume() to error reporting and add some time to complete >> thread. > > Leonid Mesnik has updated the pull request incrementally with one additional > commit since the last revision: > > log message added. Changes requ

RFR: 8295861: get rid of list argument in debug agent's removeNode() API

2022-11-10 Thread Chris Plummer
Get rid of `list` argument in debug agent's `removeNode()` API. The list is stored in the node, so no need to pass it in. - Commit messages: - Remove list argument from removeNode() Changes: https://git.openjdk.org/jdk/pull/11101/files Webrev: https://webrevs.openjdk.org/?repo=jdk

Re: RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v17]

2022-11-10 Thread Paul Sandoz
On Wed, 9 Nov 2022 13:24:54 GMT, Maurizio Cimadamore wrote: >> This PR contains the API and implementation changes for JEP-434 [1]. A more >> detailed description of such changes, to avoid repetitions during the review >> process, is included as a separate comment. >> >> [1] - https://openjdk

RFR: 8296265: Use modern HTML in the JVMTI spec

2022-11-10 Thread Alex Menkov
Changes: - removed `` from TOC; - added CSS style for TOC (to simplify customization, currently it's empty); - removed `` from from function list (per Phase); - removed `` from from list of events; - introduced CSS style for bold text, replaced `` tags with ``; - update transformation rule for `"b"

Re: RFR: 8296546: Add @spec tags to API

2022-11-10 Thread Naoto Sato
On Thu, 10 Nov 2022 01:10:13 GMT, Jonathan Gibbons wrote: > Please review a "somewhat automated" change to insert `@spec` tags into doc > comments, as appropriate, to leverage the recent new javadoc feature to > generate a new page listing the references to all external specifications > listed

Re: RFR: 8296822: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java

2022-11-10 Thread Daniel D . Daugherty
On Thu, 10 Nov 2022 23:01:24 GMT, Naoto Sato wrote: >> A trivial fix to ProblemList >> jdk/jfr/api/consumer/TestRecordingFileWrite.java. > > Marked as reviewed by naoto (Reviewer). @naotoj - Thanks for the fast review! - PR: https://git.openjdk.org/jdk/pull/11095

Re: RFR: 8296822: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java

2022-11-10 Thread Naoto Sato
On Thu, 10 Nov 2022 22:54:54 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java. Marked as reviewed by naoto (Reviewer). - PR: https://git.openjdk.org/jdk/pull/11095

RFR: 8296822: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java

2022-11-10 Thread Daniel D . Daugherty
A trivial fix to ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java. - Commit messages: - 8296822: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java Changes: https://git.openjdk.org/jdk/pull/11095/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11095&ran

Integrated: 8296822: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java

2022-11-10 Thread Daniel D . Daugherty
On Thu, 10 Nov 2022 22:54:54 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java. This pull request has now been integrated. Changeset: 43ebd963 Author:Daniel D. Daugherty URL: https://git.openjdk.org/jdk/commit/43ebd96301

RFR: 8295315: [REDO] 8276687 Remove support for JDK 1.4.1 PerfData shared memory files

2022-11-10 Thread Ioi Lam
Here's redo for https://github.com/openjdk/jdk/pull/10687. This PR has two commits: - 739b79afb1965b625b2002187ac3fd43f385a639 is the same as in the original PR - 78455c024ec5c00f1a0ce6c0e13df477c3063fe1 fixes the bug in the original PR. I have run tiers 1 - 4 so hopefully I got it right this tim

Re: RFR: 8296546: Add @spec tags to API

2022-11-10 Thread Jonathan Gibbons
On Thu, 10 Nov 2022 16:33:09 GMT, AJ1062910 wrote: > did you changed 420 files ? I ran a custom utility that edited these files, yes. - PR: https://git.openjdk.org/jdk/pull/11073

Re: RFR: JDK-8296546: Add @spec tags to API

2022-11-10 Thread Jonathan Gibbons
On Thu, 10 Nov 2022 12:01:11 GMT, Alan Bateman wrote: > I'm trying to understand what "fix-ups" will be needed if the automated patch > is applied. In some cases, it looks the same spec will be linked from "See > also" and "External Specifications", e.g. > http://cr.openjdk.java.net/~jjg/82965

Re: RFR: JDK-8296546: Add @spec tags to API

2022-11-10 Thread Jonathan Gibbons
On Thu, 10 Nov 2022 11:45:39 GMT, Alan Bateman wrote: > > When referencing an RFC, it might be good to keep the RFC number in the > > text link. For instance I see that java.net.URL now has this: > > I agree and also to add that some RFCs have commas in their titles, the same > separator used

Re: RFR: JDK-8296546: Add @spec tags to API

2022-11-10 Thread Jonathan Gibbons
On Thu, 10 Nov 2022 11:30:51 GMT, Daniel Fuchs wrote: > Hi Jon, > > When referencing an RFC, it might be good to keep the RFC number in the text > link. For instance I see that java.net.URL now has this: > > http://cr.openjdk.java.net/~jjg/8296546/api.00/java.base/java/net/URL.html > > Extern

Re: RFR: JDK-8296547: Add @spec tags to API

2022-11-10 Thread Sean Mullan
On Thu, 10 Nov 2022 11:45:39 GMT, Alan Bateman wrote: > When referencing an RFC, it might be good to keep the RFC number in the text > link. +1. - PR: https://git.openjdk.org/jdk/pull/11073

Re: RFR: 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails [v4]

2022-11-10 Thread Leonid Mesnik
> Change Thread.resume() to error reporting and add some time to complete > thread. Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision: log message added. - Changes: - all: https://git.openjdk.org/jdk/pull/10877/files

Re: RFR: 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails [v3]

2022-11-10 Thread Leonid Mesnik
> Change Thread.resume() to error reporting and add some time to complete > thread. Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision: update - Changes: - all: https://git.openjdk.org/jdk/pull/10877/files - new: https

Re: RFR: 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails [v2]

2022-11-10 Thread Leonid Mesnik
On Thu, 27 Oct 2022 15:01:18 GMT, Daniel D. Daugherty wrote: >> Leonid Mesnik has updated the pull request incrementally with one additional >> commit since the last revision: >> >> All dispose tests fixed. > > test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003a.java >

Re: RFR: 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails [v2]

2022-11-10 Thread Leonid Mesnik
On Thu, 27 Oct 2022 15:34:38 GMT, Serguei Spitsyn wrote: >> Leonid Mesnik has updated the pull request incrementally with one additional >> commit since the last revision: >> >> All dispose tests fixed. > > test/hotspot/jtreg/vmTestbase/nsk/share/jdi/Utils.java line 29: > >> 27: >> 28:

Re: RFR: 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails [v2]

2022-11-10 Thread Leonid Mesnik
On Thu, 27 Oct 2022 15:35:08 GMT, Chris Plummer wrote: >> Or you could use the longer name `nsk.share.jdi.Utils` to differentiate... >> >> Is it always the case that we're calling this `isAlive()` function after a >> `VM.dispose()` call? >> I'm not so sure that's the case... See L135-142 below.

Re: RFR: 8296089: Remove debug agent code for special handling of Thread.resume() [v3]

2022-11-10 Thread Chris Plummer
> The debug agent sets a breakpoint in Thread.resume() so it can prevent the > debugger from suspending threads while in the resume call: > > /* > * Track the resuming thread by marking it as being within > * a resume and by setting up for notification on

Re: RFR: 8296089: Remove debug agent code for special handling of Thread.resume() [v2]

2022-11-10 Thread Chris Plummer
On Thu, 10 Nov 2022 11:03:25 GMT, Serguei Spitsyn wrote: >> Chris Plummer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Cleanup some suspect suspendOnStart and toBeResumed checks. > > src/jdk.jdwp.agent/share/native/libjdwp/threadContr

Re: RFR: JDK-8296547: Add @spec tags to API

2022-11-10 Thread AJ1062910
On Thu, 10 Nov 2022 01:10:13 GMT, Jonathan Gibbons wrote: > Please review a "somewhat automated" change to insert `@spec` tags into doc > comments, as appropriate, to leverage the recent new javadoc feature to > generate a new page listing the references to all external specifications > listed

Re: RFR: JDK-8296547: Add @spec tags to API

2022-11-10 Thread Weijun Wang
On Thu, 10 Nov 2022 01:10:13 GMT, Jonathan Gibbons wrote: > Please review a "somewhat automated" change to insert `@spec` tags into doc > comments, as appropriate, to leverage the recent new javadoc feature to > generate a new page listing the references to all external specifications > listed

Re: RFR: 8296796: Provide clean, platform-agnostic interface to C-heap trimming

2022-11-10 Thread Thomas Stuefe
On Thu, 10 Nov 2022 13:23:34 GMT, Thomas Stuefe wrote: > This is a breakout from > [JDK-8293114](https://bugs.openjdk.org/browse/JDK-8293114), which is starved > for reviews. So I attempt to break up that fix into smaller units which are > hopefully easier to review separately. > > We can tri

RFR: 8296796: Provide clean, platform-agnostic interface to C-heap trimming

2022-11-10 Thread Thomas Stuefe
This is a breakout from [JDK-8293114](https://bugs.openjdk.org/browse/JDK-8293114), which is starved for reviews. So I attempt to break up that fix into smaller units which are hopefully easier to review separately. We can trim the C-heap manually using jcmd since [JDK-8268893](https://bugs.op

Extend Native Memory Tracking over the JDK ? (was: Proposal: track zlib native memory usage with NMT)

2022-11-10 Thread Carter Kozak
*+serviceability-dev* Firstly, thank you both for your time and work in this space. Apologies if this should be a separate thread, but the new title “Extend Native Memory Tracking over the JDK” aligns directly with some work I’ve been investigating, and I hope my feedback will be helpful for pr

Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread Lutz Schmidt
On Thu, 10 Nov 2022 12:20:58 GMT, David Holmes wrote: > Can the test be augmented to catch this case too? David, the test already catches both warnings. The warnings are only issued under special circumstances. That's why everything looks fine in most cases. SAP's commercial vm has a feature c

Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread David Holmes
On Thu, 10 Nov 2022 09:02:02 GMT, Lutz Schmidt wrote: > This small change fixes a warning that may pop up during runtime. May I > please request reviews? Thank you! Can the test be augmented to catch this case too? - PR: https://git.openjdk.org/jdk/pull/11083

Re: RFR: JDK-8296547: Add @spec tags to API

2022-11-10 Thread Alan Bateman
On Thu, 10 Nov 2022 01:10:13 GMT, Jonathan Gibbons wrote: > Please review a "somewhat automated" change to insert `@spec` tags into doc > comments, as appropriate, to leverage the recent new javadoc feature to > generate a new page listing the references to all external specifications > listed

Re: RFR: JDK-8296547: Add @spec tags to API

2022-11-10 Thread Daniel Fuchs
On Thu, 10 Nov 2022 01:10:13 GMT, Jonathan Gibbons wrote: > Please review a "somewhat automated" change to insert `@spec` tags into doc > comments, as appropriate, to leverage the recent new javadoc feature to > generate a new page listing the references to all external specifications > listed

Re: RFR: JDK-8296547: Add @spec tags to API

2022-11-10 Thread Alan Bateman
On Thu, 10 Nov 2022 11:30:51 GMT, Daniel Fuchs wrote: > When referencing an RFC, it might be good to keep the RFC number in the text > link. For instance I see that java.net.URL now has this: I agree and also to add that some RFCs have commas in their titles, the same separator used when there

Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread Lutz Schmidt
On Thu, 10 Nov 2022 09:02:02 GMT, Lutz Schmidt wrote: > This small change fixes a warning that may pop up during runtime. May I > please request reviews? Thank you! Thanks for the review, Kevin! I'm looking into the "exceeds capacity" warning separately. Need to find out who is holding so man

Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread Serguei Spitsyn
On Thu, 10 Nov 2022 09:02:02 GMT, Lutz Schmidt wrote: > This small change fixes a warning that may pop up during runtime. May I > please request reviews? Thank you! Looks good. Thank you for taking care about this. Serguei - Marked as reviewed by sspitsyn (Reviewer). PR: https://

Re: RFR: 8296089: Remove debug agent code for special handling of Thread.resume() [v2]

2022-11-10 Thread Serguei Spitsyn
On Wed, 9 Nov 2022 05:57:32 GMT, Chris Plummer wrote: >> The debug agent sets a breakpoint in Thread.resume() so it can prevent the >> debugger from suspending threads while in the resume call: >> >> /* >> * Track the resuming thread by marking it as being within >>

Re: RFR: 8296089: Remove debug agent code for special handling of Thread.resume() [v2]

2022-11-10 Thread Serguei Spitsyn
On Wed, 9 Nov 2022 05:57:32 GMT, Chris Plummer wrote: >> The debug agent sets a breakpoint in Thread.resume() so it can prevent the >> debugger from suspending threads while in the resume call: >> >> /* >> * Track the resuming thread by marking it as being within >>

Re: RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread Kevin Walls
On Thu, 10 Nov 2022 09:02:02 GMT, Lutz Schmidt wrote: > This small change fixes a warning that may pop up during runtime. May I > please request reviews? Thank you! Looks good I think. Got to check for those exceptions! The example invocation also shows the me "exceeds capacity" warning, whic

RFR: 8296776: Stop using mtNone as marker for CHeap allocations in GrowableArray

2022-11-10 Thread Stefan Karlsson
Today we use mtNone to denote that a GrowableArray should *NOT* be backed by a CHeap allocated array. I've gotten feedback that it would probably be good to limit the usage of mtNone, and at some point maybe completely remove it. This patch takes a small step to remove mtNone from the GrowableA

RFR: 8296709: WARNING: JNI call made without checking exceptions

2022-11-10 Thread Lutz Schmidt
This small change fixes a warning that may pop up during runtime. May I please request reviews? Thank you! - Commit messages: - 8296709: WARNING: JNI call made without checking exceptions Changes: https://git.openjdk.org/jdk/pull/11083/files Webrev: https://webrevs.openjdk.org/?re