comparison src/share/vm/runtime/arguments.cpp @ 187:790e66e5fbac

6687581: Make CMS work with compressed oops Summary: Make FreeChunk read markword instead of LSB in _klass pointer to indicate that it's a FreeChunk for compressed oops. Reviewed-by: ysr, jmasa
author coleenp
date Mon, 09 Jun 2008 11:51:19 -0400
parents 8759d37f2524
children d1605aabd0a1 6aae2f9d0294
comparison
equal deleted inserted replaced
185:8759d37f2524 187:790e66e5fbac
1172 #ifdef _LP64 1172 #ifdef _LP64
1173 // Compressed Headers do not work with CMS, which uses a bit in the klass 1173 // Compressed Headers do not work with CMS, which uses a bit in the klass
1174 // field offset to determine free list chunk markers. 1174 // field offset to determine free list chunk markers.
1175 // Check that UseCompressedOops can be set with the max heap size allocated 1175 // Check that UseCompressedOops can be set with the max heap size allocated
1176 // by ergonomics. 1176 // by ergonomics.
1177 if (!UseConcMarkSweepGC && MaxHeapSize <= max_heap_for_compressed_oops()) { 1177 if (MaxHeapSize <= max_heap_for_compressed_oops()) {
1178 if (FLAG_IS_DEFAULT(UseCompressedOops)) { 1178 if (FLAG_IS_DEFAULT(UseCompressedOops)) {
1179 // Leave compressed oops off by default. Uncomment 1179 // Leave compressed oops off by default. Uncomment
1180 // the following line to return it to default status. 1180 // the following line to return it to default status.
1181 // FLAG_SET_ERGO(bool, UseCompressedOops, true); 1181 // FLAG_SET_ERGO(bool, UseCompressedOops, true);
1182 } 1182 }