8221639: [i386] expand_exec_shield_cs_limit workaround is undefined code after JDK-8199717

Only perform this optimization for x86_64

Reviewed-by: dholmes, andrew
This commit is contained in:
Severin Gehwolf 2019-04-18 13:58:31 +02:00
parent 048c3dc026
commit fb355041ea
2 changed files with 7 additions and 3 deletions

View File

@ -5158,13 +5158,16 @@ jint os::init_2(void) {
return JNI_ERR;
}
#if defined(IA32)
// Need to ensure we've determined the process's initial stack to
// perform the workaround
Linux::capture_initial_stack(JavaThread::stack_size_at_create());
workaround_expand_exec_shield_cs_limit();
#else
suppress_primordial_thread_resolution = Arguments::created_by_java_launcher();
if (!suppress_primordial_thread_resolution) {
Linux::capture_initial_stack(JavaThread::stack_size_at_create());
}
#if defined(IA32)
workaround_expand_exec_shield_cs_limit();
#endif
Linux::libpthread_init();

View File

@ -827,6 +827,7 @@ void os::verify_stack_alignment() {
*/
void os::workaround_expand_exec_shield_cs_limit() {
#if defined(IA32)
assert(Linux::initial_thread_stack_bottom() != NULL, "sanity");
size_t page_size = os::vm_page_size();
/*