RFR: 8284161: Implementation of Virtual Threads (Preview)
Alan Bateman
alanb at openjdk.java.net
Mon Apr 11 07:43:46 UTC 2022
On Mon, 11 Apr 2022 07:33:20 GMT, ExE Boss <duke at openjdk.java.net> wrote:
> Maybe it should use a `MethodHandle` fetched using `IMPL_LOOKUP` instead, in order to avoid the runtime overhead of going through `CallerSensitive` methods (`Class.forName` and `Constructor.newInstance`).
>
> It should probably also be cached.
It is cached. It's also a very exceptional case that only arises when the SC API (separate JEP, not here) is used incorrectly.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8166
More information about the serviceability-dev
mailing list