Merge
This commit is contained in:
commit
61d82b75be
@ -749,7 +749,10 @@ char* Universe::preferred_heap_base(size_t heap_size, NARROW_OOP_MODE mode) {
|
|||||||
assert(mode == UnscaledNarrowOop ||
|
assert(mode == UnscaledNarrowOop ||
|
||||||
mode == ZeroBasedNarrowOop ||
|
mode == ZeroBasedNarrowOop ||
|
||||||
mode == HeapBasedNarrowOop, "mode is invalid");
|
mode == HeapBasedNarrowOop, "mode is invalid");
|
||||||
|
// Return specified base for the first request.
|
||||||
|
if (!FLAG_IS_DEFAULT(HeapBaseMinAddress) && (mode == UnscaledNarrowOop)) {
|
||||||
|
return (char*)HeapBaseMinAddress;
|
||||||
|
}
|
||||||
const size_t total_size = heap_size + HeapBaseMinAddress;
|
const size_t total_size = heap_size + HeapBaseMinAddress;
|
||||||
if (total_size <= OopEncodingHeapMax && (mode != HeapBasedNarrowOop)) {
|
if (total_size <= OopEncodingHeapMax && (mode != HeapBasedNarrowOop)) {
|
||||||
if (total_size <= NarrowOopHeapMax && (mode == UnscaledNarrowOop) &&
|
if (total_size <= NarrowOopHeapMax && (mode == UnscaledNarrowOop) &&
|
||||||
@ -857,7 +860,7 @@ jint Universe::initialize_heap() {
|
|||||||
// Can't reserve heap below 4Gb.
|
// Can't reserve heap below 4Gb.
|
||||||
Universe::set_narrow_oop_shift(LogMinObjAlignmentInBytes);
|
Universe::set_narrow_oop_shift(LogMinObjAlignmentInBytes);
|
||||||
} else {
|
} else {
|
||||||
assert(Universe::narrow_oop_shift() == 0, "use unscaled narrow oop");
|
Universe::set_narrow_oop_shift(0);
|
||||||
if (PrintCompressedOopsMode) {
|
if (PrintCompressedOopsMode) {
|
||||||
tty->print(", 32-bits Oops");
|
tty->print(", 32-bits Oops");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user