8254265: s390 and linux 32 bit builds broken
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
4f9a1ffcdd
commit
2bc8bc5722
@ -856,7 +856,7 @@ void TemplateInterpreterGenerator::generate_stack_overflow_check(Register frame_
|
||||
|
||||
// Compute the beginning of the protected zone minus the requested frame size.
|
||||
__ z_sgr(tmp1, tmp2);
|
||||
__ add2reg(tmp1, JavaThread::stack_guard_zone_size());
|
||||
__ add2reg(tmp1, StackOverflow::stack_guard_zone_size());
|
||||
|
||||
// Add in the size of the frame (which is the same as subtracting it from the
|
||||
// SP, which would take another register.
|
||||
|
@ -1935,7 +1935,7 @@ void * os::Linux::dll_load_in_vmthread(const char *filename, char *ebuf,
|
||||
StackOverflow* overflow_state = jt->stack_overflow_state();
|
||||
if (!overflow_state->stack_guard_zone_unused() && // Stack not yet fully initialized
|
||||
overflow_state->stack_guards_enabled()) { // No pending stack overflow exceptions
|
||||
if (!os::guard_memory((char *)jt->stack_end(), overflow_state->stack_guard_zone_size())) {
|
||||
if (!os::guard_memory((char *)jt->stack_end(), StackOverflow::stack_guard_zone_size())) {
|
||||
warning("Attempt to reguard stack yellow zone failed.");
|
||||
}
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user