changeset 10216:b99dbcd228f6 icedtea-3.11.0pre02

PR3683: Addition of 8189170 in 8u192 breaks 8197429 backport
author andrew
date Thu, 24 Jan 2019 02:13:25 +0000
parents a6c9f05505b1
children 9ecf75ce7c70
files src/os_cpu/linux_x86/vm/os_linux_x86.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/linux_x86/vm/os_linux_x86.cpp	Wed Jan 16 07:13:59 2019 +0000
+++ b/src/os_cpu/linux_x86/vm/os_linux_x86.cpp	Thu Jan 24 02:13:25 2019 +0000
@@ -906,9 +906,11 @@
    * in Java code.
    *
    */
-  if (os::Linux::is_initial_thread()) {
+  if (os::is_primordial_thread()) {
     address limit = Linux::initial_thread_stack_bottom();
-    limit += (StackYellowPages + StackRedPages) * page_size;
+    if (! DisablePrimordialThreadGuardPages) {
+      limit += (StackYellowPages + StackRedPages) * page_size;
+    }
     os::Linux::expand_stack_to(limit);
   }