8191770: [ppc64] Fix CDS: don't rewrite invokefinal if DumpSharedSpaces
authorsimonis
Tue, 28 Nov 2017 14:11:43 +0100
changeset 48142 b7fc502cb8aa
parent 48141 bafb0db43bfe
child 48143 4c8451a12e79
8191770: [ppc64] Fix CDS: don't rewrite invokefinal if DumpSharedSpaces Reviewed-by: mdoerr, jiangli
src/hotspot/cpu/ppc/templateTable_ppc_64.cpp
--- a/src/hotspot/cpu/ppc/templateTable_ppc_64.cpp	Tue Nov 28 15:42:15 2017 +0300
+++ b/src/hotspot/cpu/ppc/templateTable_ppc_64.cpp	Tue Nov 28 14:11:43 2017 +0100
@@ -3371,7 +3371,7 @@
   __ testbitdi(CCR0, R0, Rflags, ConstantPoolCacheEntry::is_vfinal_shift);
   __ bfalse(CCR0, LnotFinal);
 
-  if (RewriteBytecodes && !UseSharedSpaces) {
+  if (RewriteBytecodes && !UseSharedSpaces && !DumpSharedSpaces) {
     patch_bytecode(Bytecodes::_fast_invokevfinal, Rnew_bc, R12_scratch2);
   }
   invokevfinal_helper(Rvtableindex_or_method, Rflags, R11_scratch1, R12_scratch2);