RFR: 8265453: SafepointMechanism::should_process() should receive JavaThread*
Aleksey Shipilev
shade at openjdk.java.net
Wed Apr 21 21:04:22 UTC 2021
On Wed, 21 Apr 2021 14:47:13 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
> Hi,
>
> Please review this cleanup in class SafepointMechanism. Since method should_process() is only called by JavaThreads the check in local_poll() is redundant. It also makes the generated code for should_process() unnecessary long since we only need to check the poll bit. I only had to fix a couple of calls from the zero interpreter that where passing a Thread* instead of a JavaThread*.
> Tested tier1 in mach5 and that it builds zero.
>
> Thanks,
> Patricio
Zero change looks fine. It also passes `bootcycle-images` on Linux Zero x86_64 fastdebug, which is a good sanity test for this code.
-------------
Marked as reviewed by shade (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/3603
More information about the hotspot-runtime-dev
mailing list