mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +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
|
@ -1386,8 +1386,9 @@ bool os::stack_shadow_pages_available(Thread *thread, const methodHandle& method
|
|||
// respectively.
|
||||
const int framesize_in_bytes =
|
||||
Interpreter::size_top_interpreter_activation(method()) * wordSize;
|
||||
int reserved_area = ((StackShadowPages + StackRedPages + StackYellowPages)
|
||||
* vm_page_size()) + framesize_in_bytes;
|
||||
int reserved_area = ((StackShadowPages + StackRedPages + StackYellowPages
|
||||
+ StackReservedPages) * vm_page_size())
|
||||
+ framesize_in_bytes;
|
||||
// The very lower end of the stack
|
||||
address stack_limit = thread->stack_base() - thread->stack_size();
|
||||
return (sp > (stack_limit + reserved_area));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue