equal
deleted
inserted
replaced
536 } |
536 } |
537 void set_host_klass(Klass* host) { |
537 void set_host_klass(Klass* host) { |
538 assert(is_anonymous(), "not anonymous"); |
538 assert(is_anonymous(), "not anonymous"); |
539 Klass** addr = (Klass**)adr_host_klass(); |
539 Klass** addr = (Klass**)adr_host_klass(); |
540 assert(addr != NULL, "no reversed space"); |
540 assert(addr != NULL, "no reversed space"); |
541 *addr = host; |
541 if (addr != NULL) { |
|
542 *addr = host; |
|
543 } |
542 } |
544 } |
543 bool is_anonymous() const { |
545 bool is_anonymous() const { |
544 return (_misc_flags & _misc_is_anonymous) != 0; |
546 return (_misc_flags & _misc_is_anonymous) != 0; |
545 } |
547 } |
546 void set_is_anonymous(bool value) { |
548 void set_is_anonymous(bool value) { |
758 } |
760 } |
759 |
761 |
760 void set_implementor(Klass* k) { |
762 void set_implementor(Klass* k) { |
761 assert(is_interface(), "not interface"); |
763 assert(is_interface(), "not interface"); |
762 Klass** addr = adr_implementor(); |
764 Klass** addr = adr_implementor(); |
763 *addr = k; |
765 assert(addr != NULL, "null addr"); |
|
766 if (addr != NULL) { |
|
767 *addr = k; |
|
768 } |
764 } |
769 } |
765 |
770 |
766 int nof_implementors() const { |
771 int nof_implementors() const { |
767 Klass* k = implementor(); |
772 Klass* k = implementor(); |
768 if (k == NULL) { |
773 if (k == NULL) { |