RFR: 8286560: Remove user parameter from jdk.internal.perf.Perf.attach() [v2]

Ioi Lam iklam at openjdk.java.net
Thu May 12 18:21:00 UTC 2022


On Thu, 12 May 2022 14:08:11 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   @AlanBateman comments - remove thros IllegalArgumentException clause
>
> src/java.base/share/classes/jdk/internal/perf/Perf.java line 246:
> 
>> 244:      */
>> 245:     private native ByteBuffer attach0(int lvmid)
>> 246:                    throws IllegalArgumentException, IOException;
> 
> You can drop the "throws IllegalArgumentException" here if you want, it's not needed as it's a runtime exception.

Fixed.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8669


More information about the core-libs-dev mailing list