8210486: Unused code in check_nest_attributes function
Reviewed-by: mikael, sspitsyn
--- a/src/hotspot/share/prims/jvmtiRedefineClasses.cpp Fri Sep 07 08:02:51 2018 -0400
+++ b/src/hotspot/share/prims/jvmtiRedefineClasses.cpp Fri Sep 07 08:14:47 2018 -0400
@@ -699,7 +699,6 @@
// Check whether the class NestHost attribute has been changed.
Thread* thread = Thread::current();
ResourceMark rm(thread);
- JvmtiThreadState *state = JvmtiThreadState::state_for((JavaThread*)thread);
u2 the_nest_host_idx = the_class->nest_host_index();
u2 scr_nest_host_idx = scratch_class->nest_host_index();