mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8213259: [AOT] AOTing java.base fails with "java.lang.AssertionError: no fingerprint for Ljdk/internal/event/Event"
Reviewed-by: iklam, kvn
This commit is contained in:
parent
abf1e47f29
commit
787f8b320e
2 changed files with 7 additions and 5 deletions
|
@ -5521,10 +5521,16 @@ InstanceKlass* ClassFileParser::create_instance_klass(bool changed_by_loadhook,
|
|||
|
||||
assert(_klass == ik, "invariant");
|
||||
|
||||
|
||||
if (ik->should_store_fingerprint()) {
|
||||
ik->store_fingerprint(_stream->compute_fingerprint());
|
||||
}
|
||||
|
||||
ik->set_has_passed_fingerprint_check(false);
|
||||
if (UseAOT && ik->supers_have_passed_fingerprint_checks()) {
|
||||
uint64_t aot_fp = AOTLoader::get_saved_fingerprint(ik);
|
||||
if (aot_fp != 0 && aot_fp == _stream->compute_fingerprint()) {
|
||||
uint64_t fp = ik->has_stored_fingerprint() ? ik->get_stored_fingerprint() : _stream->compute_fingerprint();
|
||||
if (aot_fp != 0 && aot_fp == fp) {
|
||||
// This class matches with a class saved in an AOT library
|
||||
ik->set_has_passed_fingerprint_check(true);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue