8234791: Fix Client VM build for x86_64 and AArch64

Reviewed-by: adinn, aph, thartmann
This commit is contained in:
Pengfei Li 2019-11-29 03:48:30 +00:00
parent b0812b2802
commit ddb989de3d
2 changed files with 1 additions and 2 deletions

View File

@ -33,6 +33,7 @@
#include "interpreter/interp_masm.hpp"
#include "logging/log.hpp"
#include "memory/resourceArea.hpp"
#include "nativeInst_aarch64.hpp"
#include "oops/compiledICHolder.hpp"
#include "oops/klass.inline.hpp"
#include "runtime/safepointMechanism.hpp"

View File

@ -1693,11 +1693,9 @@ void Arguments::set_use_compressed_oops() {
size_t max_heap_size = MAX3(MaxHeapSize, InitialHeapSize, MinHeapSize);
if (max_heap_size <= max_heap_for_compressed_oops()) {
#if !defined(COMPILER1) || defined(TIERED)
if (FLAG_IS_DEFAULT(UseCompressedOops)) {
FLAG_SET_ERGO(UseCompressedOops, true);
}
#endif
} else {
if (UseCompressedOops && !FLAG_IS_DEFAULT(UseCompressedOops)) {
warning("Max heap size too large for Compressed Oops");