On Wed, 11 May 2022 23:08:32 GMT, Ioi Lam <ik...@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

Reply via email to