equal
deleted
inserted
replaced
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); |