summaryrefslogtreecommitdiff
path: root/test/616-cha-regression-proxy-method/src
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2020-07-24 12:10:12 +0100
committer Orion Hodson <oth@google.com> 2020-07-26 21:08:18 +0000
commit2731eb474f3f1b9c7598bd477ebbbb1aae28d833 (patch)
tree848224dec52ebec3dcdfbfeda9c756e5fb552603 /test/616-cha-regression-proxy-method/src
parent14464670d7d6a226b768873f25d63f5d025941ff (diff)
More inclusive language fixes
Bug: 161896447 Bug: 161850439 Bug: 161336379 Test: art/test.py --host Change-Id: I1519e22d40cb28f243dd75b12d455cfa844726fc
Diffstat (limited to 'test/616-cha-regression-proxy-method/src')
-rw-r--r--test/616-cha-regression-proxy-method/src/Main.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/616-cha-regression-proxy-method/src/Main.java b/test/616-cha-regression-proxy-method/src/Main.java
index 19c92be006..176f80b1bf 100644
--- a/test/616-cha-regression-proxy-method/src/Main.java
+++ b/test/616-cha-regression-proxy-method/src/Main.java
@@ -70,7 +70,7 @@ public class Main {
// sMain1.foo() will be always be Main1.foo() before Main2 is loaded/linked.
// So sMain1.foo() can be devirtualized to Main1.foo() and be inlined.
- // After Dummy.createMain2() which links in Main2, live testOverride() on stack
+ // After Helper.createMain2() which links in Main2, live testOverride() on stack
// should be deoptimized.
static void testOverride() {
sMain1.foo(sMain1.getClass() == Main1.class ? 1 : 2);
@@ -79,14 +79,14 @@ public class Main {
while (!sOtherThreadStarted);
// Create an Main2 instance and assign it to sMain2.
// sMain1 is kept the same.
- sMain2 = Dummy.createMain2();
+ sMain2 = Helper.createMain2();
// Wake up the other thread.
synchronized(Main.class) {
Main.class.notify();
}
// There should be a deoptimization here right after Main2 is linked by
- // calling Dummy.createMain2(), even though sMain1 didn't change.
+ // calling Helper.createMain2(), even though sMain1 didn't change.
// The behavior here would be different if inline-cache is used, which
// doesn't deoptimize since sMain1 still hits the type cache.
sMain1.foo(sMain1.getClass() == Main1.class ? 1 : 2);
@@ -124,7 +124,7 @@ public class Main {
}
// Put createMain2() in another class to avoid class loading due to verifier.
-class Dummy {
+class Helper {
static Main1 createMain2() {
return new Main2();
}