mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6873800: enable compressed oops by default
Enable compressed oops by default Reviewed-by: never, ysr
This commit is contained in:
parent
ff9a1bddb5
commit
2a362d8b87
1 changed files with 2 additions and 4 deletions
|
@ -1233,10 +1233,8 @@ void Arguments::set_ergonomics_flags() {
|
|||
// 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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue