comparison src/share/vm/interpreter/interpreterRuntime.cpp @ 3403:7db2b9499c36

7046732: JSR 292 assert(result == cpce->f1()) failed: expected result for assembly code Reviewed-by: kvn, iveresov, jrose
author never
date Wed, 25 May 2011 16:04:09 -0700
parents ed69575596ac
children 38fa55e5e792
comparison
equal deleted inserted replaced
3402:28a9fe9534ea 3403:7db2b9499c36
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 //------------------------------------------------------------------------------------------------------------------------