< prev index next >
src/hotspot/share/runtime/thread.cpp
Print this page
@@ -2279,11 +2279,12 @@
// Note: this function shouldn't block if it's called in
// _thread_in_native_trans state (such as from
// check_special_condition_for_native_trans()).
void JavaThread::check_and_handle_async_exceptions(bool check_unsafe_error) {
-
+ // May be we are at method entry and requires to save do not unlock flag.
+ UnlockFlagSaver fs(this);
if (has_last_Java_frame() && has_async_condition()) {
// If we are at a polling page safepoint (not a poll return)
// then we must defer async exception because live registers
// will be clobbered by the exception path. Poll return is
// ok because the call we a returning from already collides
< prev index next >