summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-06-24 13:35:48 +0200
committerMichael Stahl <mstahl@redhat.com>2015-06-24 15:09:49 +0200
commitbb6399937270fb149639248dd1a28775948f7285 (patch)
treed2da3a12c9b0f81adb8ba6120c9eab4e3401f70e /jvmfwk/plugins
parent004ddbe666121f0bbf42cd256ba89377c633427e (diff)
jvmfwk: pass along -Xss to JVM on AMD64 too
The PythonTest_dbacces_python in a clang ASAN build on F21 started to fail with StackOverflowError in JNI_CreateJavaVM on the main thread, and this fixes the problem. Seen with java-1.8.0-openjdk-1.8.0.45-39.b14.fc21.x86_64 Change-Id: I87dfb4b62d547b334c19261aad88b4856489776f
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index 36d6a3378426..893066c0bd34 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -67,7 +67,7 @@
#endif
#endif
-#if defined LINUX && defined X86
+#if defined LINUX && (defined X86 || defined X86_64)
#include <sys/resource.h>
#endif
@@ -755,7 +755,7 @@ javaPluginError jfw_plugin_startJavaVirtualMachine(
options.push_back(Option("-Xint", nullptr));
}
if (!hasStackSize) {
-#if defined LINUX && defined X86
+#if defined LINUX && (defined X86 || defined X86_64)
// At least OpenJDK 1.8.0's os::workaround_expand_exec_shield_cs_limit
// (hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp) can mmap an rwx
// page into the area that the main stack can grow down to according to