8241158: SA TestHeapDumpForInvokeDynamic.java fails when CDS archive is relocated

Reviewed-by: ccheung
This commit is contained in:
Ioi Lam 2020-04-20 17:33:52 -07:00
parent 7b8c373494
commit 0bc7cc4d28
5 changed files with 70 additions and 14 deletions

View file

@ -222,6 +222,7 @@ private:
static bool should_be_excluded(InstanceKlass* k);
DEBUG_ONLY(static bool _no_class_loading_should_happen;)
public:
static InstanceKlass* find_builtin_class(Symbol* class_name);
@ -326,6 +327,13 @@ public:
address p = address(ptr) - SharedBaseAddress;
return primitive_hash<address>(p);
}
#if INCLUDE_CDS_JAVA_HEAP
private:
static void update_archived_mirror_native_pointers_for(RunTimeSharedDictionary* dict);
public:
static void update_archived_mirror_native_pointers() NOT_CDS_RETURN;
#endif
};
#endif // SHARE_CLASSFILE_SYSTEMDICTIONARYSHARED_HPP