6769124: various 64-bit fixes for c1

Reviewed-by: never
This commit is contained in:
Roland Westrelin 2009-11-02 11:17:55 +01:00
parent 903247cf85
commit 7eea7dcfe4
14 changed files with 309 additions and 31 deletions

View file

@ -1234,9 +1234,11 @@ 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()) {
#ifndef COMPILER1
if (FLAG_IS_DEFAULT(UseCompressedOops) && !UseG1GC) {
FLAG_SET_ERGO(bool, UseCompressedOops, true);
}
#endif
#ifdef _WIN64
if (UseLargePages && UseCompressedOops) {
// Cannot allocate guard pages for implicit checks in indexed addressing
@ -2675,6 +2677,10 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
}
}
#if defined(_LP64) && defined(COMPILER1)
UseCompressedOops = false;
#endif
#ifdef SERIALGC
set_serial_gc_flags();
#endif // SERIALGC