mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8046936: JEP 270: Reserved Stack Areas for Critical Sections
Reviewed-by: acorn, dcubed
This commit is contained in:
parent
f6440f7fb1
commit
ef800bd53f
69 changed files with 987 additions and 64 deletions
|
@ -1431,7 +1431,7 @@ void Deoptimization::load_class_by_index(const constantPoolHandle& constant_pool
|
|||
// stack bang causes a stack overflow we crash.
|
||||
assert(THREAD->is_Java_thread(), "only a java thread can be here");
|
||||
JavaThread* thread = (JavaThread*)THREAD;
|
||||
bool guard_pages_enabled = thread->stack_yellow_zone_enabled();
|
||||
bool guard_pages_enabled = thread->stack_guards_enabled();
|
||||
if (!guard_pages_enabled) guard_pages_enabled = thread->reguard_stack();
|
||||
assert(guard_pages_enabled, "stack banging in uncommon trap blob may cause crash");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue