Blame SOURCES/jdk8189170-aarch64_primordial_thread.patch

1a0dbd
# HG changeset patch
1a0dbd
# User dbuck
1a0dbd
# Date 1547622839 0
1a0dbd
#      Wed Jan 16 07:13:59 2019 +0000
1a0dbd
# Node ID 34c6b4b813caf9b3a6fd1859596a87a24a49c423
1a0dbd
# Parent  bca8195a3bc70df281a73d9a40032c673971676c
1a0dbd
8189170: [AArch64] Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
1a0dbd
Reviewed-by: dcubed
1a0dbd
1a0dbd
diff --git openjdk.orig/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp openjdk/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
1a0dbd
--- openjdk.orig/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
1a0dbd
+++ openjdk/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
1a0dbd
@@ -1,5 +1,5 @@
1a0dbd
 /*
1a0dbd
- * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
1a0dbd
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
1a0dbd
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1a0dbd
  *
1a0dbd
  * This code is free software; you can redistribute it and/or modify it
1a0dbd
@@ -550,8 +550,8 @@
1a0dbd
 //    pthread_attr_getstack()
1a0dbd
 
1a0dbd
 static void current_stack_region(address * bottom, size_t * size) {
1a0dbd
-  if (os::Linux::is_initial_thread()) {
1a0dbd
-     // initial thread needs special handling because pthread_getattr_np()
1a0dbd
+  if (os::is_primordial_thread()) {
1a0dbd
+     // primordial thread needs special handling because pthread_getattr_np()
1a0dbd
      // may return bogus value.
1a0dbd
      *bottom = os::Linux::initial_thread_stack_bottom();
1a0dbd
      *size   = os::Linux::initial_thread_stack_size();