RFR: 8294698: Remove unused 'checkedExceptions' param from MethodAccessorGenerator.generateMethod()
Claes Redestad
redestad at openjdk.org
Mon Oct 3 11:07:24 UTC 2022
On Sun, 2 Oct 2022 20:45:02 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
> `checkedExceptions` param of `MethodAccessorGenerator.generateMethod()` is unused and should be removed in order to prevent allocations from `Method.getExceptionTypes()`
I agree that getting rid of the clone can help -- but since [JEP 416](https://openjdk.org/jeps/416) the generators modified here is mostly a fallback and the bulk of the use will use `MethodHandles` (unless you disable JEP 416 and fall back to the legacy impl). I was mostly curious if you had a startup or other benchmark running on mainline where the change you're doing here could be observed.
-------------
PR: https://git.openjdk.org/jdk/pull/10526
More information about the core-libs-dev
mailing list