8191770: [ppc64] Fix CDS: don't rewrite invokefinal if DumpSharedSpaces
Reviewed-by: mdoerr, jiangli
--- 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);