Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/method.cpp @ 8751:1fc4d4768b90
8007725: NPG: Klass::restore_unshareable_info() triggers assert(k->java_mirror() == NULL)
Summary: Check for exception during SystemDictionary::resolve_instance_class_or_null() and clean up.
Reviewed-by: coleenp, acorn, hseigel, minqi
Contributed-by: ioi.lam@oracle.com
author | coleenp |
---|---|
date | Fri, 15 Mar 2013 17:24:40 -0400 |
parents | 5939f5953b45 |
children | 0c3ee6f1fa23 16885e702c88 |
comparison
equal
deleted
inserted
replaced
8750:39432a1cefdd | 8751:1fc4d4768b90 |
---|---|
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 |