8206977: Minor improvements of runtime code

Reviewed-by: coleenp, lfoltan
This commit is contained in:
Goetz Lindenmaier 2018-07-11 16:11:10 +02:00
parent 89f13ef117
commit 8a9b0134a8
18 changed files with 68 additions and 55 deletions

View file

@ -631,7 +631,9 @@ void FileMapInfo::write_region(int region, char* base, size_t size,
si->_read_only = read_only;
si->_allow_exec = allow_exec;
si->_crc = ClassLoader::crc32(0, base, (jint)size);
write_bytes_aligned(base, (int)size);
if (base != NULL) {
write_bytes_aligned(base, (int)size);
}
}
// Write out the given archive heap memory regions. GC code combines multiple