< prev index next >

src/hotspot/share/memory/filemap.cpp

Print this page
rev 50967 : 8206977: Minor improvements of runtime code.

@@ -629,11 +629,13 @@
   }
   si->_used = size;
   si->_read_only = read_only;
   si->_allow_exec = allow_exec;
   si->_crc = ClassLoader::crc32(0, base, (jint)size);
+  if (base != NULL) {
   write_bytes_aligned(base, (int)size);
+  }
 }
 
 // Write out the given archive heap memory regions.  GC code combines multiple
 // consecutive archive GC regions into one MemRegion whenever possible and
 // produces the 'heap_mem' array.
< prev index next >