RFR: 8297600: Check current thread in selected JRT_LEAF methods [v2]
Aleksey Shipilev
shade at openjdk.org
Mon Nov 28 12:26:42 UTC 2022
On Sat, 26 Nov 2022 08:18:42 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Unclear for many JVMCI functions that the thread argument is actually intended/required to be the current thread. It seems unused in many cases so why is it passed?
Yes, I agree the initial patch over-reached in some places. Please see new commit, which reduces it. I left `thread == JavaThread::current()` checks where I can argue the threads are expected to be current.
-------------
PR: https://git.openjdk.org/jdk/pull/11359
More information about the hotspot-dev
mailing list