RFR: 8286560: Remove user parameter from jdk.internal.perf.Perf.attach()
Alan Bateman
alanb at openjdk.java.net
Thu May 12 14:12:02 UTC 2022
On Wed, 11 May 2022 23:08:32 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> The API `jdk.internal.perf.Perf.::attach(String user, int lvmid)` is never used. It should be removed, and all the handling of a specified user name should be removed.
Marked as reviewed by alanb (Reviewer).
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.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8669
More information about the core-libs-dev
mailing list