The printed size use byte unit while the actual value are in words.
```
if (reserved.word_size() <= word_size) {
log_info(gc, heap)("Unable to allocate regions as archive heap is too large; size requested = %zu"
" bytes, heap = %zu bytes", word_size, reserved.word_size());
return nullptr;
}
```
```
if (reserved.word_size() <= word_size) {
log_info(gc, heap)("Unable to allocate regions as archive heap is too large; size requested = %zu"
" bytes, heap = %zu bytes", word_size, reserved.word_size());
return nullptr;
}
```
- caused by
-
JDK-8309065 Move the logic to determine archive heap location from CDS to G1 GC
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/417f8ecf
-
Review(master) openjdk/jdk/25746