Mercurial > hg > graal-compiler
comparison src/share/vm/oops/constantPoolOop.cpp @ 4176:a428df0139f3
Initialize resolved as well as unresolved classes in the native implementation of HotSpotConstantPool.loadReferencedType()
author | Peter Hofer <peter.hofer@jku.at> |
---|---|
date | Mon, 02 Jan 2012 18:40:00 +0100 |
parents | f08d439fab8c |
children | 33df1aeaebbf |
comparison
equal
deleted
inserted
replaced
4175:ea49d7abeb05 | 4176:a428df0139f3 |
---|---|
344 | 344 |
345 int constantPoolOopDesc::remap_instruction_operand_from_cache(int operand) { | 345 int constantPoolOopDesc::remap_instruction_operand_from_cache(int operand) { |
346 int cpc_index = operand; | 346 int cpc_index = operand; |
347 DEBUG_ONLY(cpc_index -= CPCACHE_INDEX_TAG); | 347 DEBUG_ONLY(cpc_index -= CPCACHE_INDEX_TAG); |
348 assert((int)(u2)cpc_index == cpc_index, "clean u2"); | 348 assert((int)(u2)cpc_index == cpc_index, "clean u2"); |
349 assert(cache() != NULL, "cache not null, maybe class is resolved but not rewritten yet"); | |
349 int member_index = cache()->entry_at(cpc_index)->constant_pool_index(); | 350 int member_index = cache()->entry_at(cpc_index)->constant_pool_index(); |
350 return member_index; | 351 return member_index; |
351 } | 352 } |
352 | 353 |
353 | 354 |