hotspot/src/share/vm/runtime/arguments.cpp
changeset 3687 7530897778c5
parent 3586 33e632b72dbf
child 3700 cf9a1b408c4f
child 3908 24b55ad4c228
--- 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) {