aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriveresov <none@none>2010-10-19 11:14:52 -0700
committeriveresov <none@none>2010-10-19 11:14:52 -0700
commitb5e892493f8c4c603894ab4c7965ac7be4a8b5db (patch)
tree919b38f3e1de32ccbe2af351beb4ca681aa0c349
parent3f73fa68931072a16a1965537d11ab58d86f3c60 (diff)
6989669: Coops: -Xshare:dump causes crash
Summary: Temporarily fix to disable compressed oops with CDS Reviewed-by: dholmes, twisti, kvn, never
-rw-r--r--src/share/vm/runtime/arguments.cpp7
-rw-r--r--src/share/vm/runtime/globals.hpp2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/share/vm/runtime/arguments.cpp b/src/share/vm/runtime/arguments.cpp
index 2e1ac1e16..e996510bb 100644
--- a/src/share/vm/runtime/arguments.cpp
+++ b/src/share/vm/runtime/arguments.cpp
@@ -2979,6 +2979,13 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
UseCompressedOops = false;
#endif
+#if defined(_LP64)
+ if ((DumpSharedSpaces || RequireSharedSpaces) && UseCompressedOops) {
+ // Disable compressed oops with shared spaces
+ UseCompressedOops = false;
+ }
+#endif
+
// Set object alignment values.
set_object_alignment();
diff --git a/src/share/vm/runtime/globals.hpp b/src/share/vm/runtime/globals.hpp
index 8395bf9a3..12e102185 100644
--- a/src/share/vm/runtime/globals.hpp
+++ b/src/share/vm/runtime/globals.hpp
@@ -3545,7 +3545,7 @@ class CommandLineFlags {
product(uintx, SharedDummyBlockSize, 512*M, \
"Size of dummy block used to shift heap addresses (in bytes)") \
\
- product(uintx, SharedReadWriteSize, 12*M, \
+ product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(13*M), \
"Size of read-write space in permanent generation (in bytes)") \
\
product(uintx, SharedReadOnlySize, 10*M, \