mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-19 04:13:07 +00:00
8276429: CodeHeapState::print_names() fails with "assert(klass->is_loader_alive()) failed: must be alive"
Reviewed-by: kvn
This commit is contained in:
parent
a6fa6ed1ed
commit
5acff75379
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019 SAP SE. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -2335,11 +2335,11 @@ void CodeHeapState::print_names(outputStream* out, CodeHeap* heap) {
|
||||
Symbol* methSig = method->signature();
|
||||
const char* methSigS = (methSig == NULL) ? NULL : methSig->as_C_string();
|
||||
methSigS = (methSigS == NULL) ? "<method signature unavailable>" : methSigS;
|
||||
|
||||
Klass* klass = method->method_holder();
|
||||
assert(klass->is_loader_alive(), "must be alive");
|
||||
assert(klass != nullptr, "No method holder");
|
||||
const char* classNameS = (klass->name() == nullptr) ? "<class name unavailable>" : klass->external_name();
|
||||
|
||||
ast->print("%s.", klass->external_name());
|
||||
ast->print("%s.", classNameS);
|
||||
ast->print("%s", methNameS);
|
||||
ast->print("%s", methSigS);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user