mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8254265: s390 and linux 32 bit builds broken
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
4f9a1ffcdd
commit
2bc8bc5722
3 changed files with 5 additions and 5 deletions
|
@ -838,8 +838,8 @@ void os::workaround_expand_exec_shield_cs_limit() {
|
|||
if (os::is_primordial_thread()) {
|
||||
address limit = Linux::initial_thread_stack_bottom();
|
||||
if (! DisablePrimordialThreadGuardPages) {
|
||||
limit += JavaThread::stack_red_zone_size() +
|
||||
JavaThread::stack_yellow_zone_size();
|
||||
limit += StackOverflow::stack_red_zone_size() +
|
||||
StackOverflow::stack_yellow_zone_size();
|
||||
}
|
||||
os::Linux::expand_stack_to(limit);
|
||||
}
|
||||
|
@ -860,7 +860,7 @@ void os::workaround_expand_exec_shield_cs_limit() {
|
|||
* we don't have much control or understanding of the address space, just let it slide.
|
||||
*/
|
||||
char* hint = (char*)(Linux::initial_thread_stack_bottom() -
|
||||
(JavaThread::stack_guard_zone_size() + page_size));
|
||||
(StackOverflow::stack_guard_zone_size() + page_size));
|
||||
char* codebuf = os::attempt_reserve_memory_at(hint, page_size);
|
||||
|
||||
if (codebuf == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue