hotspot/src/share/vm/interpreter/interpreterRuntime.cpp
changeset 9960 43fe83652b18
parent 9116 9bc44be338d6
child 10004 190e88f7edd1
equal deleted inserted replaced
9959:a6730101c2d0 9960:43fe83652b18
   137   assert(bytecode == Bytecodes::_fast_aldc ||
   137   assert(bytecode == Bytecodes::_fast_aldc ||
   138          bytecode == Bytecodes::_fast_aldc_w, "wrong bc");
   138          bytecode == Bytecodes::_fast_aldc_w, "wrong bc");
   139   ResourceMark rm(thread);
   139   ResourceMark rm(thread);
   140   methodHandle m (thread, method(thread));
   140   methodHandle m (thread, method(thread));
   141   Bytecode_loadconstant ldc(m, bci(thread));
   141   Bytecode_loadconstant ldc(m, bci(thread));
   142   oop result = ldc.resolve_constant(THREAD);
   142   oop result = ldc.resolve_constant(CHECK);
   143   DEBUG_ONLY(ConstantPoolCacheEntry* cpce = m->constants()->cache()->entry_at(ldc.cache_index()));
   143 #ifdef ASSERT
   144   assert(result == cpce->f1(), "expected result for assembly code");
   144   {
       
   145     // The bytecode wrappers aren't GC-safe so construct a new one
       
   146     Bytecode_loadconstant ldc2(m, bci(thread));
       
   147     ConstantPoolCacheEntry* cpce = m->constants()->cache()->entry_at(ldc2.cache_index());
       
   148     assert(result == cpce->f1(), "expected result for assembly code");
       
   149   }
       
   150 #endif
   145 }
   151 }
   146 IRT_END
   152 IRT_END
   147 
   153 
   148 
   154 
   149 //------------------------------------------------------------------------------------------------------------------------
   155 //------------------------------------------------------------------------------------------------------------------------