src/hotspot/os/linux/os_linux.cpp
changeset 54654 7acebe4d65e2
parent 54623 1126f0607c70
child 55044 d3afe760b392
--- a/src/hotspot/os/linux/os_linux.cpp	Tue Apr 30 14:49:19 2019 +0200
+++ b/src/hotspot/os/linux/os_linux.cpp	Thu Apr 18 13:58:31 2019 +0200
@@ -5158,13 +5158,16 @@
     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();