796 NOT_PRODUCT(set_compiled_invocation_count(0);) |
796 NOT_PRODUCT(set_compiled_invocation_count(0);) |
797 invocation_counter()->reset(); |
797 invocation_counter()->reset(); |
798 backedge_counter()->reset(); |
798 backedge_counter()->reset(); |
799 _adapter = NULL; |
799 _adapter = NULL; |
800 _from_compiled_entry = NULL; |
800 _from_compiled_entry = NULL; |
801 assert(_method_data == NULL, "unexpected method data?"); |
801 |
|
802 // In case of DumpSharedSpaces, _method_data should always be NULL. |
|
803 // |
|
804 // During runtime (!DumpSharedSpaces), when we are cleaning a |
|
805 // shared class that failed to load, this->link_method() may |
|
806 // have already been called (before an exception happened), so |
|
807 // this->_method_data may not be NULL. |
|
808 assert(!DumpSharedSpaces || _method_data == NULL, "unexpected method data?"); |
|
809 |
802 set_method_data(NULL); |
810 set_method_data(NULL); |
803 set_interpreter_throwout_count(0); |
811 set_interpreter_throwout_count(0); |
804 set_interpreter_invocation_count(0); |
812 set_interpreter_invocation_count(0); |
805 } |
813 } |
806 |
814 |