mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8253717: Relocate stack overflow code out of thread.hpp/cpp
Reviewed-by: rehn, dcubed, dholmes, stuefe
This commit is contained in:
parent
782d45bdec
commit
6bc493188b
50 changed files with 774 additions and 662 deletions
|
@ -1689,8 +1689,7 @@ void Deoptimization::load_class_by_index(const constantPoolHandle& constant_pool
|
|||
// stack otherwise if we return to the uncommon trap blob and the
|
||||
// stack bang causes a stack overflow we crash.
|
||||
JavaThread* jt = THREAD->as_Java_thread();
|
||||
bool guard_pages_enabled = jt->stack_guards_enabled();
|
||||
if (!guard_pages_enabled) guard_pages_enabled = jt->reguard_stack();
|
||||
bool guard_pages_enabled = jt->stack_overflow_state()->reguard_stack_if_needed();
|
||||
assert(guard_pages_enabled, "stack banging in uncommon trap blob may cause crash");
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue