mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-04 20:18:49 +00:00
8256832: Zero: micro-optimize safepoint handling after JDK-8255384
Reviewed-by: rehn
This commit is contained in:
parent
04eecf03eb
commit
f4c15a98e3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user