src/hotspot/share/prims/jvmtiRedefineClasses.cpp
changeset 51668 0a8d4f484987
parent 51444 3e5d28e6de32
child 51697 49e1b21d9878
equal deleted inserted replaced
51667:799cddff49fe 51668:0a8d4f484987
   697 static jvmtiError check_nest_attributes(InstanceKlass* the_class,
   697 static jvmtiError check_nest_attributes(InstanceKlass* the_class,
   698                                         InstanceKlass* scratch_class) {
   698                                         InstanceKlass* scratch_class) {
   699   // Check whether the class NestHost attribute has been changed.
   699   // Check whether the class NestHost attribute has been changed.
   700   Thread* thread = Thread::current();
   700   Thread* thread = Thread::current();
   701   ResourceMark rm(thread);
   701   ResourceMark rm(thread);
   702   JvmtiThreadState *state = JvmtiThreadState::state_for((JavaThread*)thread);
       
   703   u2 the_nest_host_idx = the_class->nest_host_index();
   702   u2 the_nest_host_idx = the_class->nest_host_index();
   704   u2 scr_nest_host_idx = scratch_class->nest_host_index();
   703   u2 scr_nest_host_idx = scratch_class->nest_host_index();
   705 
   704 
   706   if (the_nest_host_idx != 0 && scr_nest_host_idx != 0) {
   705   if (the_nest_host_idx != 0 && scr_nest_host_idx != 0) {
   707     Symbol* the_sym = the_class->constants()->klass_name_at(the_nest_host_idx);
   706     Symbol* the_sym = the_class->constants()->klass_name_at(the_nest_host_idx);