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:
Coleen Phillimore 2020-05-29 15:00:19 -04:00
parent e639c9a840
commit 5314d28f84
36 changed files with 789 additions and 843 deletions

View file

@ -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);