mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
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:
parent
048c3dc026
commit
fb355041ea
2 changed files with 7 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue