Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/dump.cpp @ 4739:52b5d32fbfaf
7117052: instanceKlass::_init_state can be u1 type
Summary: Change instanceKlass::_init_state field to u1 type.
Reviewed-by: bdelsart, coleenp, dholmes, phh, never
Contributed-by: Jiangli Zhou <jiangli.zhou@oracle.com>
author | coleenp |
---|---|
date | Tue, 06 Dec 2011 18:28:51 -0500 |
parents | 8ce625481709 |
children | f7c4174b33ba fc9d8850ab8b |
comparison
equal
deleted
inserted
replaced
4738:da4dd142ea01 | 4739:52b5d32fbfaf |
---|---|
1400 Klass* k = Klass::cast((klassOop) obj); | 1400 Klass* k = Klass::cast((klassOop) obj); |
1401 if (k->oop_is_instance()) { | 1401 if (k->oop_is_instance()) { |
1402 instanceKlass* ik = (instanceKlass*) k; | 1402 instanceKlass* ik = (instanceKlass*) k; |
1403 // Link the class to cause the bytecodes to be rewritten and the | 1403 // Link the class to cause the bytecodes to be rewritten and the |
1404 // cpcache to be created. | 1404 // cpcache to be created. |
1405 if (ik->get_init_state() < instanceKlass::linked) { | 1405 if (ik->init_state() < instanceKlass::linked) { |
1406 ik->link_class(THREAD); | 1406 ik->link_class(THREAD); |
1407 guarantee(!HAS_PENDING_EXCEPTION, "exception in class rewriting"); | 1407 guarantee(!HAS_PENDING_EXCEPTION, "exception in class rewriting"); |
1408 } | 1408 } |
1409 | 1409 |
1410 // Create String objects from string initializer symbols. | 1410 // Create String objects from string initializer symbols. |
1533 // Link the class to cause the bytecodes to be rewritten and the | 1533 // Link the class to cause the bytecodes to be rewritten and the |
1534 // cpcache to be created. The linking is done as soon as classes | 1534 // cpcache to be created. The linking is done as soon as classes |
1535 // are loaded in order that the related data structures (klass, | 1535 // are loaded in order that the related data structures (klass, |
1536 // cpCache, Sting constants) are located together. | 1536 // cpCache, Sting constants) are located together. |
1537 | 1537 |
1538 if (ik->get_init_state() < instanceKlass::linked) { | 1538 if (ik->init_state() < instanceKlass::linked) { |
1539 ik->link_class(THREAD); | 1539 ik->link_class(THREAD); |
1540 guarantee(!(HAS_PENDING_EXCEPTION), "exception in class rewriting"); | 1540 guarantee(!(HAS_PENDING_EXCEPTION), "exception in class rewriting"); |
1541 } | 1541 } |
1542 | 1542 |
1543 // Create String objects from string initializer symbols. | 1543 // Create String objects from string initializer symbols. |