path: root/jvmfwk
diff options
authorMichael Stahl <>2015-06-24 13:35:48 +0200
committerAndras Timar <>2015-08-06 12:51:45 +0200
commit151d79c5b129ec4a7efaa584c47bbdc13d765eee (patch)
tree338518eeee38f75577cf918971f4c2f709a192c4 /jvmfwk
parentca7431be74c832117a84513642bf2ea449a70661 (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- Change-Id: I87dfb4b62d547b334c19261aad88b4856489776f (cherry picked from commit bb6399937270fb149639248dd1a28775948f7285)
Diffstat (limited to 'jvmfwk')
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index 18c72806b55b..72e17d30822a 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -70,7 +70,7 @@
-#if defined LINUX && defined X86
+#if defined LINUX && (defined X86 || defined X86_64)
#include <sys/resource.h>
@@ -758,7 +758,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