mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7117052: instanceKlass::_init_state can be u1 type
Change instanceKlass::_init_state field to u1 type. Reviewed-by: bdelsart, coleenp, dholmes, phh, never
This commit is contained in:
parent
8e81e037e7
commit
f9f4ba0203
14 changed files with 27 additions and 19 deletions
|
@ -1402,7 +1402,7 @@ class LinkClassesClosure : public ObjectClosure {
|
|||
instanceKlass* ik = (instanceKlass*) k;
|
||||
// Link the class to cause the bytecodes to be rewritten and the
|
||||
// cpcache to be created.
|
||||
if (ik->get_init_state() < instanceKlass::linked) {
|
||||
if (ik->init_state() < instanceKlass::linked) {
|
||||
ik->link_class(THREAD);
|
||||
guarantee(!HAS_PENDING_EXCEPTION, "exception in class rewriting");
|
||||
}
|
||||
|
@ -1535,7 +1535,7 @@ void GenCollectedHeap::preload_and_dump(TRAPS) {
|
|||
// are loaded in order that the related data structures (klass,
|
||||
// cpCache, Sting constants) are located together.
|
||||
|
||||
if (ik->get_init_state() < instanceKlass::linked) {
|
||||
if (ik->init_state() < instanceKlass::linked) {
|
||||
ik->link_class(THREAD);
|
||||
guarantee(!(HAS_PENDING_EXCEPTION), "exception in class rewriting");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue