8156789: missing condition in ClassPathZipEntry::open_versioned_entry()
authorccheung
Wed, 11 May 2016 12:19:59 -0700
changeset 38294 0a86f32d0fa0
parent 38293 fb5f66e3011f
child 38295 584539ac3ad2
8156789: missing condition in ClassPathZipEntry::open_versioned_entry() Summary: added back the !_is_boot_append condition Reviewed-by: hseigel, jiangli
hotspot/src/share/vm/classfile/classLoader.cpp
--- a/hotspot/src/share/vm/classfile/classLoader.cpp	Wed May 11 18:49:29 2016 +0300
+++ b/hotspot/src/share/vm/classfile/classLoader.cpp	Wed May 11 12:19:59 2016 -0700
@@ -320,7 +320,7 @@
 #if INCLUDE_CDS
 u1* ClassPathZipEntry::open_versioned_entry(const char* name, jint* filesize, TRAPS) {
   u1* buffer = NULL;
-  if (DumpSharedSpaces) {
+  if (DumpSharedSpaces && !_is_boot_append) {
     // We presume default is multi-release enabled
     const char* multi_ver = Arguments::get_property("jdk.util.jar.enableMultiRelease");
     const char* verstr = Arguments::get_property("jdk.util.jar.version");