OSDN Git Service

ART: Correctly handle temporary classes in class-load events (4/3)
authorAndreas Gampe <agampe@google.com>
Tue, 14 Feb 2017 02:10:09 +0000 (18:10 -0800)
committerAndreas Gampe <agampe@google.com>
Tue, 14 Feb 2017 02:32:50 +0000 (18:32 -0800)
commit52784ac8d21de0557ded4225c65cad77226dae36
tree8a8e474f1f73741a7350845c5c98298b3f7e3ff0
parent5abcfe6254acce99bf25a151b19ffe5c9b50494f
ART: Correctly handle temporary classes in class-load events (4/3)

When a temporary class is given out in a ClassLoad event, all stored
references need to be fixed up before publishing a ClassPrepare event.

This CL handles objects stored in the heap as referents.

Bug: 31684920
Test: m test-art-host-run-test-912-classes
Change-Id: If140ecae675cd7bc648f622eaf200f8ad8b15438
runtime/openjdkjvmti/ti_class.cc
test/912-classes/classes.cc
test/912-classes/src/Main.java