Re: RFR: 8310816: GcInfoBuilder float/double signature mismatch

2023-06-26 Thread Kevin Walls
On Fri, 23 Jun 2023 18:10:59 GMT, Kevin Walls  wrote:

> Simple typo in a signature which is passed to JNU_NewObjectByName.  The 
> method clearly intentds to pass Float, but uses Double.
> 
> This code is probably not invoked, unless there is a GC MXBean with such 
> fields.  I see no straightforward way of testing this explicitly, but the 
> change is tiny.
> 
> All tests in test/jdk/com/sun/management still pass.

Thanks!

-

PR Comment: https://git.openjdk.org/jdk/pull/14631#issuecomment-1606975619


Re: RFR: 8310816: GcInfoBuilder float/double signature mismatch

2023-06-23 Thread David Holmes
On Fri, 23 Jun 2023 18:10:59 GMT, Kevin Walls  wrote:

> Simple typo in a signature which is passed to JNU_NewObjectByName.  The 
> method clearly intentds to pass Float, but uses Double.
> 
> This code is probably not invoked, unless there is a GC MXBean with such 
> fields.  I see no straightforward way of testing this explicitly, but the 
> change is tiny.
> 
> All tests in test/jdk/com/sun/management still pass.

Seems an obvious copy'n'paste error, but would result in a null entry in the 
array.

I can't figure out how this code is triggered by `getLastGcInfo0` so can't say 
how to test it either.

Hard to imagine removing a null could cause a problem for code accessing the 
resulting array, so it seems safe in that regard.

Thanks.

-

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14631#pullrequestreview-1496074434


Re: RFR: 8310816: GcInfoBuilder float/double signature mismatch

2023-06-23 Thread Mandy Chung
On Fri, 23 Jun 2023 18:10:59 GMT, Kevin Walls  wrote:

> Simple typo in a signature which is passed to JNU_NewObjectByName.  The 
> method clearly intentds to pass Float, but uses Double.
> 
> This code is probably not invoked, unless there is a GC MXBean with such 
> fields.  I see no straightforward way of testing this explicitly, but the 
> change is tiny.
> 
> All tests in test/jdk/com/sun/management still pass.

Marked as reviewed by mchung (Reviewer).

-

PR Review: https://git.openjdk.org/jdk/pull/14631#pullrequestreview-1496015078


RFR: 8310816: GcInfoBuilder float/double signature mismatch

2023-06-23 Thread Kevin Walls
Simple typo in a signature which is passed to JNU_NewObjectByName.  The method 
clearly intentds to pass Float, but uses Double.

This code is probably not invoked, unless there is a GC MXBean with such 
fields.  I see no straightforward way of testing this explicitly, but the 
change is tiny.

All tests in test/jdk/com/sun/management still pass.

-

Commit messages:
 - 8310816: GcInfoBuilder float/double signature mismatch

Changes: https://git.openjdk.org/jdk/pull/14631/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14631&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8310816
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/14631.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14631/head:pull/14631

PR: https://git.openjdk.org/jdk/pull/14631