6873800: enable compressed oops by default
authorkvn
Mon, 24 Aug 2009 11:13:46 -0700
changeset 3687 7530897778c5
parent 3686 69c1b5228547
child 3688 22b55d147bc1
6873800: enable compressed oops by default Summary: enable compressed oops by default Reviewed-by: never, ysr
hotspot/src/share/vm/runtime/arguments.cpp
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Thu Aug 20 12:42:57 2009 -0700
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Mon Aug 24 11:13:46 2009 -0700
@@ -1233,10 +1233,8 @@
   // Check that UseCompressedOops can be set with the max heap size allocated
   // by ergonomics.
   if (MaxHeapSize <= max_heap_for_compressed_oops()) {
-    if (FLAG_IS_DEFAULT(UseCompressedOops)) {
-      // Turn off until bug is fixed.
-      // the following line to return it to default status.
-      // FLAG_SET_ERGO(bool, UseCompressedOops, true);
+    if (FLAG_IS_DEFAULT(UseCompressedOops) && !UseG1GC) {
+      FLAG_SET_ERGO(bool, UseCompressedOops, true);
     }
 #ifdef _WIN64
     if (UseLargePages && UseCompressedOops) {