mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
This commit is contained in:
parent
f5ef48f3b9
commit
6e8a263a06
66 changed files with 1031 additions and 461 deletions
|
@ -1471,9 +1471,9 @@ void GraphBuilder::access_field(Bytecodes::Code code) {
|
|||
if (code == Bytecodes::_getstatic || code == Bytecodes::_putstatic) {
|
||||
if (state_before != NULL) {
|
||||
// build a patching constant
|
||||
obj = new Constant(new ClassConstant(holder), state_before);
|
||||
obj = new Constant(new InstanceConstant(holder->java_mirror()), state_before);
|
||||
} else {
|
||||
obj = new Constant(new ClassConstant(holder));
|
||||
obj = new Constant(new InstanceConstant(holder->java_mirror()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue