aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authoraph <none@none>2018-07-06 17:25:06 +0100
committeraph <none@none>2018-07-06 17:25:06 +0100
commitde8325c9951da49292b81c3724cf591b2d2718dd (patch)
tree43bae8fa23ede7b6950046540f8935b322c1a8d5 /src/os
parentd1296acefb3eae7ac77fd6a5094d0e08c5e26723 (diff)
downloadjdk8u_hotspot-de8325c9951da49292b81c3724cf591b2d2718dd.tar.gz
8197429: Increased stack guard causes segfaults on x86-32
Reviewed-by: dholmes
Diffstat (limited to 'src/os')
-rw-r--r--src/os/linux/vm/os_linux.cpp4
-rw-r--r--src/os/linux/vm/os_linux.hpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/os/linux/vm/os_linux.cpp b/src/os/linux/vm/os_linux.cpp
index 387ff0364..4d4dad060 100644
--- a/src/os/linux/vm/os_linux.cpp
+++ b/src/os/linux/vm/os_linux.cpp
@@ -724,6 +724,10 @@ static void _expand_stack_to(address bottom) {
}
}
+void os::Linux::expand_stack_to(address bottom) {
+ _expand_stack_to(bottom);
+}
+
bool os::Linux::manually_expand_stack(JavaThread * t, address addr) {
assert(t!=NULL, "just checking");
assert(t->osthread()->expanding_stack(), "expand should be set");
diff --git a/src/os/linux/vm/os_linux.hpp b/src/os/linux/vm/os_linux.hpp
index 046d71256..e207dccd7 100644
--- a/src/os/linux/vm/os_linux.hpp
+++ b/src/os/linux/vm/os_linux.hpp
@@ -249,6 +249,8 @@ class Linux {
static int safe_cond_timedwait(pthread_cond_t *_cond, pthread_mutex_t *_mutex, const struct timespec *_abstime);
private:
+ static void expand_stack_to(address bottom);
+
typedef int (*sched_getcpu_func_t)(void);
typedef int (*numa_node_to_cpus_func_t)(int node, unsigned long *buffer, int bufferlen);
typedef int (*numa_max_node_func_t)(void);