changeset 11239:5777a02b1783

8156789: missing condition in ClassPathZipEntry::open_versioned_entry() Summary: added back the !_is_boot_append condition Reviewed-by: hseigel, jiangli
author ccheung
date Wed, 11 May 2016 12:19:59 -0700
parents a7dcd050f119
children aa97e2b7c9fa
files src/share/vm/classfile/classLoader.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classLoader.cpp	Wed May 11 18:49:29 2016 +0300
+++ b/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");