diff options
| author | 2020-07-24 12:10:12 +0100 | |
|---|---|---|
| committer | 2020-07-26 21:08:18 +0000 | |
| commit | 2731eb474f3f1b9c7598bd477ebbbb1aae28d833 (patch) | |
| tree | 848224dec52ebec3dcdfbfeda9c756e5fb552603 /test/616-cha-interface-default/src/Main.java | |
| parent | 14464670d7d6a226b768873f25d63f5d025941ff (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-interface-default/src/Main.java')
| -rw-r--r-- | test/616-cha-interface-default/src/Main.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/616-cha-interface-default/src/Main.java b/test/616-cha-interface-default/src/Main.java index 951607d2cf..ce02cf0271 100644 --- a/test/616-cha-interface-default/src/Main.java +++ b/test/616-cha-interface-default/src/Main.java @@ -55,7 +55,7 @@ public class Main { // sMain1.foo()/sMain2.foo() will be always be Base.foo() before Main3 is loaded/linked. // So sMain1.foo() can be devirtualized to Base.foo() and be inlined. - // After Dummy.createMain3() which links in Main3, live testImplement() on stack + // After Helper.createMain3() which links in Main3, live testImplement() on stack // should be deoptimized. static void testImplement(boolean createMain3, boolean wait, boolean setHasJIT) { if (setHasJIT) { @@ -84,7 +84,7 @@ public class Main { while (!sOtherThreadStarted); // Create an Main2 instance and assign it to sMain2. // sMain1 is kept the same. - sMain3 = Dummy.createMain3(); + sMain3 = Helper.createMain3(); // Wake up the other thread. synchronized(Main.class) { Main.class.notify(); @@ -102,7 +102,7 @@ public class Main { } // There should be a deoptimization here right after Main3 is linked by - // calling Dummy.createMain3(), even though sMain1 didn't change. + // calling Helper.createMain3(), 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. if (sMain1.foo(getValue(sMain1.getClass())) != 11) { @@ -169,7 +169,7 @@ public class Main { } // Put createMain3() in another class to avoid class loading due to verifier. -class Dummy { +class Helper { static Base createMain3() { return new Main3(); } |