comparison src/share/vm/oops/instanceKlass.hpp @ 7465:37a3e8b7a1e9

Merge
author zgu
date Tue, 08 Jan 2013 11:39:53 -0800
parents ecd24264898b cc6a617fffd2
children 989155e2d07a 4a916f2ce331 337e1dd9d902
comparison
equal deleted inserted replaced
7464:ecd24264898b 7465:37a3e8b7a1e9
458 void initialize(TRAPS); 458 void initialize(TRAPS);
459 void link_class(TRAPS); 459 void link_class(TRAPS);
460 bool link_class_or_fail(TRAPS); // returns false on failure 460 bool link_class_or_fail(TRAPS); // returns false on failure
461 void unlink_class(); 461 void unlink_class();
462 void rewrite_class(TRAPS); 462 void rewrite_class(TRAPS);
463 void relocate_and_link_methods(TRAPS); 463 void link_methods(TRAPS);
464 Method* class_initializer(); 464 Method* class_initializer();
465 465
466 // set the class to initialized if no static initializer is present 466 // set the class to initialized if no static initializer is present
467 void eager_initialize(Thread *thread); 467 void eager_initialize(Thread *thread);
468 468
540 if (value) { 540 if (value) {
541 _misc_flags |= _misc_is_anonymous; 541 _misc_flags |= _misc_is_anonymous;
542 } else { 542 } else {
543 _misc_flags &= ~_misc_is_anonymous; 543 _misc_flags &= ~_misc_is_anonymous;
544 } 544 }
545 }
546
547 // Oop that keeps the metadata for this class from being unloaded
548 // in places where the metadata is stored in other places, like nmethods
549 oop klass_holder() const {
550 return is_anonymous() ? java_mirror() : class_loader();
545 } 551 }
546 552
547 // signers 553 // signers
548 objArrayOop signers() const { return _signers; } 554 objArrayOop signers() const { return _signers; }
549 void set_signers(objArrayOop s) { klass_oop_store((oop*)&_signers, s); } 555 void set_signers(objArrayOop s) { klass_oop_store((oop*)&_signers, s); }
654 return annotations()->class_annotations(); 660 return annotations()->class_annotations();
655 } 661 }
656 Array<AnnotationArray*>* fields_annotations() const { 662 Array<AnnotationArray*>* fields_annotations() const {
657 if (annotations() == NULL) return NULL; 663 if (annotations() == NULL) return NULL;
658 return annotations()->fields_annotations(); 664 return annotations()->fields_annotations();
665 }
666 Annotations* type_annotations() const {
667 if (annotations() == NULL) return NULL;
668 return annotations()->type_annotations();
659 } 669 }
660 670
661 // allocation 671 // allocation
662 instanceOop allocate_instance(TRAPS); 672 instanceOop allocate_instance(TRAPS);
663 673