8256832: Zero: micro-optimize safepoint handling after JDK-8255384

Reviewed-by: rehn
This commit is contained in:
Aleksey Shipilev 2020-11-29 08:02:25 +00:00
parent 04eecf03eb
commit f4c15a98e3

View File

@ -101,15 +101,12 @@
There really shouldn't be any handles remaining to trash but this is cheap
in relation to a safepoint.
*/
#define SAFEPOINT \
{ \
/* zap freed handles rather than GC'ing them */ \
HandleMarkCleaner __hmc(THREAD); \
if (SafepointMechanism::should_process(THREAD)) { \
CALL_VM(SafepointMechanism::process_if_requested_with_exit_check(THREAD, true /* check asyncs */), \
handle_exception); \
} \
}
#define SAFEPOINT \
if (SafepointMechanism::should_process(THREAD)) { \
HandleMarkCleaner __hmc(THREAD); \
CALL_VM(SafepointMechanism::process_if_requested_with_exit_check(THREAD, true /* check asyncs */), \
handle_exception); \
} \
/*
* VM_JAVA_ERROR - Macro for throwing a java exception from