Re: RFR: 8322981: Fix 2 locations in JDI that throw IOException without using the "Caused by" exception

2024-01-04 Thread Leonid Mesnik
On Thu, 4 Jan 2024 02:00:24 GMT, Chris Plummer wrote: > Use "cause" argument when rethrowing an exception. See CR for details on how > this helps. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. Marked as reviewed by

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v5]

2024-01-04 Thread David Holmes
On Fri, 5 Jan 2024 02:24:44 GMT, Denghui Dong wrote: >>> It means that either Serial is set (and available) or it can be set >> >> @stefank that is subtle - and unintuitive. Thanks for explaining. > > @dholmes-ora Thanks for the review. > > This change only involves the test part. Do I need a

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v5]

2024-01-04 Thread Denghui Dong
On Thu, 4 Jan 2024 20:37:39 GMT, David Holmes wrote: >>> > For this test I think we can just add @requires vm.gc.Serial >>> >>> @stefank but it doesn't require that, it explicitly sets that. The test >>> requires that no specific GC has been requested. >> >> @dholmes-ora `@requires

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v5]

2024-01-04 Thread Denghui Dong
> Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. Denghui Dong has updated the pull request incrementally with one additional commit since the last revision: update copyright -

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v4]

2024-01-04 Thread David Holmes
On Fri, 5 Jan 2024 00:47:48 GMT, Denghui Dong wrote: >> Hi, >> >> Please help review this patch that fixes the failures of >> FullGCHeapDumpLimitTest.java caused by passing other gc flags. >> >> Thanks. > > Denghui Dong has updated the pull request with a new target base due to a > merge or

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v4]

2024-01-04 Thread Denghui Dong
On Fri, 5 Jan 2024 00:47:48 GMT, Denghui Dong wrote: >> Hi, >> >> Please help review this patch that fixes the failures of >> FullGCHeapDumpLimitTest.java caused by passing other gc flags. >> >> Thanks. > > Denghui Dong has updated the pull request with a new target base due to a > merge or

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v4]

2024-01-04 Thread Denghui Dong
> Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. Denghui Dong has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes

Re: RFR: 8322981: Fix 2 locations in JDI that throw IOException without using the "Caused by" exception

2024-01-04 Thread David Holmes
On Thu, 4 Jan 2024 02:00:24 GMT, Chris Plummer wrote: > Use "cause" argument when rethrowing an exception. See CR for details on how > this helps. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. Okay - thanks. Change is

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v3]

2024-01-04 Thread David Holmes
On Thu, 4 Jan 2024 15:54:50 GMT, Stefan Karlsson wrote: > It means that either Serial is set (and available) or it can be set @stefank that is subtle - and unintuitive. Thanks for explaining. - PR Comment: https://git.openjdk.org/jdk/pull/17263#issuecomment-1877728970

Re: RFR: 8322978: Remove debug agent debugMonitorTimedWait() function. It is no longer used.

2024-01-04 Thread Chris Plummer
On Thu, 4 Jan 2024 02:18:10 GMT, Chris Plummer wrote: > Remove unused debugMonitorTimedWait() function. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. Thanks for the reviews David and Serguei. - PR Comment:

Integrated: 8322978: Remove debug agent debugMonitorTimedWait() function. It is no longer used.

2024-01-04 Thread Chris Plummer
On Thu, 4 Jan 2024 02:18:10 GMT, Chris Plummer wrote: > Remove unused debugMonitorTimedWait() function. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. This pull request has now been integrated. Changeset: 3fbccb01 Author:

Re: RFR: 8322980: Debug agent's dumpThread() API should update thread's name before printing it

2024-01-04 Thread Chris Plummer
On Thu, 4 Jan 2024 17:00:20 GMT, Kevin Walls wrote: > A future idea could be to have these ifdefs active in the debug JDK build. I > wouldn't normally run the debugger from the debug build, but if you wanted > this extra info it would be more convenient if it was in the debug JDK bundle.

Re: RFR: 8322981: Fix 2 locations in JDI that throw IOException without using the "Caused by" exception

2024-01-04 Thread Chris Plummer
On Thu, 4 Jan 2024 06:56:37 GMT, David Holmes wrote: > Setting the cause is good, but do you not also want an informative message? Not necessary. public class Test { public static void main(String[] args) { try { try { throw new Throwable("hello");

Re: RFR: 8322980: Debug agent's dumpThread() API should update thread's name before printing it

2024-01-04 Thread Kevin Walls
On Thu, 4 Jan 2024 02:06:28 GMT, Chris Plummer wrote: > In threadControl.c, at build time you can decide to keep track of thread > names by compiling with "#define DEBUG_THREADNAME". If this is also a debug > build, some extra debugging functions are included in the build, including >

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v3]

2024-01-04 Thread Daniel D . Daugherty
On Thu, 4 Jan 2024 15:37:33 GMT, Denghui Dong wrote: >> Hi, >> >> Please help review this patch that fixes the failures of >> FullGCHeapDumpLimitTest.java caused by passing other gc flags. >> >> Thanks. > > Denghui Dong has updated the pull request incrementally with one additional > commit

Integrated: 8323011: ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java

2024-01-04 Thread Daniel D . Daugherty
A trivial fix to ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java on all platforms. We're already up to 54 failures in Tier3 and Tier5. - Commit messages: - 8323011: ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java Changes:

Re: Integrated: 8323011: ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java

2024-01-04 Thread Alexander Zvegintsev
On Thu, 4 Jan 2024 16:24:53 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > serviceability/HeapDump/FullGCHeapDumpLimitTest.java > on all platforms. > > We're already up to 54 failures in Tier3 and Tier5. Marked as reviewed by azvegint (Reviewer). - PR Review:

Re: Integrated: 8323011: ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java

2024-01-04 Thread Daniel D . Daugherty
On Thu, 4 Jan 2024 16:27:05 GMT, Alexander Zvegintsev wrote: >> A trivial fix to ProblemList >> serviceability/HeapDump/FullGCHeapDumpLimitTest.java >> on all platforms. >> >> We're already up to 54 failures in Tier3 and Tier5. > > Marked as reviewed by azvegint (Reviewer). @azvegint and

Integrated: 8323011: ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java

2024-01-04 Thread Daniel D . Daugherty
On Thu, 4 Jan 2024 16:24:53 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > serviceability/HeapDump/FullGCHeapDumpLimitTest.java > on all platforms. > > We're already up to 54 failures in Tier3 and Tier5. This pull request has now been integrated. Changeset: ea19e9c6

Re: Integrated: 8323011: ProblemList serviceability/HeapDump/FullGCHeapDumpLimitTest.java

2024-01-04 Thread Christian Tornqvist
On Thu, 4 Jan 2024 16:24:53 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > serviceability/HeapDump/FullGCHeapDumpLimitTest.java > on all platforms. > > We're already up to 54 failures in Tier3 and Tier5. Marked as reviewed by ctornqvi (Reviewer). - PR Review:

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v3]

2024-01-04 Thread Denghui Dong
On Thu, 4 Jan 2024 16:06:26 GMT, Daniel D. Daugherty wrote: > We're up to 48 test failures so far (8 x 6 Tier3 buildIDs) which is very, > very noisy. Since it looks like this PR is still being discussed, I'm going > to ProblemList this test in order to get the noise level back down. sorry for

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v3]

2024-01-04 Thread Daniel D . Daugherty
On Thu, 4 Jan 2024 15:37:33 GMT, Denghui Dong wrote: >> Hi, >> >> Please help review this patch that fixes the failures of >> FullGCHeapDumpLimitTest.java caused by passing other gc flags. >> >> Thanks. > > Denghui Dong has updated the pull request incrementally with one additional > commit

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v3]

2024-01-04 Thread Stefan Karlsson
On Thu, 4 Jan 2024 11:56:45 GMT, David Holmes wrote: > > For this test I think we can just add @requires vm.gc.Serial > > @stefank but it doesn't require that, it explicitly sets that. The test > requires that no specific GC has been requested. @dholmes-ora `@requires vm.gc.Serial` doesn't

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v3]

2024-01-04 Thread Denghui Dong
> Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. Denghui Dong has updated the pull request incrementally with one additional commit since the last revision: update - Changes: -

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails [v2]

2024-01-04 Thread Denghui Dong
> Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. Denghui Dong has updated the pull request incrementally with one additional commit since the last revision: update - Changes: -

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails

2024-01-04 Thread Denghui Dong
On Thu, 4 Jan 2024 08:01:57 GMT, Denghui Dong wrote: > Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. And for this test, I think `@requires vm.opt.DisableExplicitGC != "true"` is also needed.

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails

2024-01-04 Thread Denghui Dong
On Thu, 4 Jan 2024 08:01:57 GMT, Denghui Dong wrote: > Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. I found other tests that set -XX:+UseSerialGC explicitly have `@requires vm.gc.Serial` or

Re: RFR: 8309271: A way to align already compiled methods with compiler directives [v20]

2024-01-04 Thread Dmitry Chuyko
> Compiler Control (https://openjdk.org/jeps/165) provides method-context > dependent control of the JVM compilers (C1 and C2). The active directive > stack is built from the directive files passed with the > `-XX:CompilerDirectivesFile` diagnostic command-line option and the >

Re: RFR: 8322978: Remove debug agent debugMonitorTimedWait() function. It is no longer used.

2024-01-04 Thread Serguei Spitsyn
On Thu, 4 Jan 2024 02:18:10 GMT, Chris Plummer wrote: > Remove unused debugMonitorTimedWait() function. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. Looks okay. - Marked as reviewed by sspitsyn (Reviewer).

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails

2024-01-04 Thread David Holmes
On Thu, 4 Jan 2024 10:01:41 GMT, Stefan Karlsson wrote: > For this test I think we can just add @requires vm.gc.Serial @stefank but it doesn't require that, it explicitly sets that. The test requires that no specific GC has been requested. - PR Comment:

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature [v3]

2024-01-04 Thread Kevin Walls
> Remove the MLet feature and its tests. > > Some tests use MLet classes but are not testing MLets. These are updated, to > use another test MBean or an MBean which is a URLClassLoader, e.g. > test/jdk/javax/management/MBeanServer/PostExceptionTest.java >

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature [v2]

2024-01-04 Thread Kevin Walls
> Remove the MLet feature and its tests. > > Some tests use MLet classes but are not testing MLets. These are updated, to > use another test MBean or an MBean which is a URLClassLoader, e.g. > test/jdk/javax/management/MBeanServer/PostExceptionTest.java >

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-04 Thread Kevin Walls
On Thu, 4 Jan 2024 10:02:39 GMT, Kevin Walls wrote: >> test/jdk/javax/management/Introspector/ClassLeakTest.java line 53: >> >>> 51: >>> 52: MBeanServer mbs = MBeanServerFactory.createMBeanServer(); >>> 53: ObjectName testName = new ObjectName("x:name=Test"); >> >> Q: I'd just

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-04 Thread Kevin Walls
On Thu, 4 Jan 2024 02:13:18 GMT, Serguei Spitsyn wrote: >> Remove the MLet feature and its tests. >> >> Some tests use MLet classes but are not testing MLets. These are updated, >> to use another test MBean or an MBean which is a URLClassLoader, e.g. >>

Re: RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails

2024-01-04 Thread Stefan Karlsson
On Thu, 4 Jan 2024 08:01:57 GMT, Denghui Dong wrote: > Hi, > > Please help review this patch that fixes the failures of > FullGCHeapDumpLimitTest.java caused by passing other gc flags. > > Thanks. I prefer if we stay away from using `@requires vm.flagless` if possible. For this test I think

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-04 Thread Kevin Walls
On Thu, 4 Jan 2024 02:39:17 GMT, Bernd wrote: >> Remove the MLet feature and its tests. >> >> Some tests use MLet classes but are not testing MLets. These are updated, >> to use another test MBean or an MBean which is a URLClassLoader, e.g. >>

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-04 Thread Kevin Walls
On Thu, 4 Jan 2024 01:57:29 GMT, Serguei Spitsyn wrote: >> Remove the MLet feature and its tests. >> >> Some tests use MLet classes but are not testing MLets. These are updated, >> to use another test MBean or an MBean which is a URLClassLoader, e.g. >>

Integrated: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays"

2024-01-04 Thread Matthias Baesken
On Wed, 3 Jan 2024 11:41:20 GMT, Matthias Baesken wrote: > In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar > cleanup has been proposed before (and was done in the change). But there are > a number of other places in the codebase where the import is done and still >

Re: RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays" [v3]

2024-01-04 Thread Matthias Baesken
On Wed, 3 Jan 2024 13:55:22 GMT, Matthias Baesken wrote: >> In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar >> cleanup has been proposed before (and was done in the change). But there are >> a number of other places in the codebase where the import is done and still

RFR: 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails

2024-01-04 Thread Denghui Dong
Hi, Please help review this patch that fixes the failures of FullGCHeapDumpLimitTest.java caused by passing other gc flags. Thanks. - Commit messages: - 8322989: New test serviceability/HeapDump/FullGCHeapDumpLimitTest.java fails Changes: