mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8245289: Clean up offset code in JavaClasses
Make offset member names consistent and private, move static initializations near owning classes Reviewed-by: fparain, lfoltan
This commit is contained in:
parent
e639c9a840
commit
5314d28f84
36 changed files with 789 additions and 843 deletions
|
@ -214,7 +214,7 @@ JRT_ENTRY(void, InterpreterRuntime::resolve_ldc(JavaThread* thread, Bytecodes::C
|
|||
if (!is_fast_aldc) {
|
||||
// Tell the interpreter how to unbox the primitive.
|
||||
guarantee(java_lang_boxing_object::is_instance(result, type), "");
|
||||
int offset = java_lang_boxing_object::value_offset_in_bytes(type);
|
||||
int offset = java_lang_boxing_object::value_offset(type);
|
||||
intptr_t flags = ((as_TosState(type) << ConstantPoolCacheEntry::tos_state_shift)
|
||||
| (offset & ConstantPoolCacheEntry::field_index_mask));
|
||||
thread->set_vm_result_2((Metadata*)flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue