mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8058259: compute_offset() is confusing for static fields
Remove most hard-coded offsets, have compute_offset function that takes a string and creates a TempNewSymbol, have static_field_addr() not add in InstanceMirrorKlass::offset_of_static_fields, ie use offset from find_field Reviewed-by: kbarrett, sspitsyn
This commit is contained in:
parent
8f739404a7
commit
ebd77628a4
9 changed files with 210 additions and 446 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -131,6 +131,7 @@ jint init_globals() {
|
|||
InterfaceSupport_init();
|
||||
SharedRuntime::generate_stubs();
|
||||
universe2_init(); // dependent on codeCache_init and stubRoutines_init1
|
||||
javaClasses_init();// must happen after vtable initialization, before referenceProcessor_init
|
||||
referenceProcessor_init();
|
||||
jni_handles_init();
|
||||
#if INCLUDE_VM_STRUCTS
|
||||
|
@ -150,7 +151,6 @@ jint init_globals() {
|
|||
if (!universe_post_init()) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
javaClasses_init(); // must happen after vtable initialization
|
||||
stubRoutines_init2(); // note: StubRoutines need 2-phase init
|
||||
MethodHandles::generate_adapters();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue