mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8211956: AppCDS crashes for some uses with JRuby
Make sure FileMapInfo::verify_mapped_heap_regions only verifies 'num' of spaces. Reviewed-by: iklam
This commit is contained in:
parent
232912a6ca
commit
ace36f9ac3
1 changed files with 2 additions and 2 deletions
|
@ -1088,8 +1088,8 @@ bool FileMapInfo::map_heap_data(MemRegion **heap_mem, int first,
|
|||
}
|
||||
|
||||
bool FileMapInfo::verify_mapped_heap_regions(int first, int num) {
|
||||
for (int i = first;
|
||||
i <= first + num; i++) {
|
||||
assert(num > 0, "sanity");
|
||||
for (int i = first; i < first + num; i++) {
|
||||
if (!verify_region_checksum(i)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue