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