/art/test/1984-structural-redefine-field-trace/ |
D | expected.txt | 2 public static boolean art.Test1984$Transform.boom=false 3 public static int art.Test1984$Transform.count_down=2 4 public static boolean art.Test1984$Transform.tock=false 5 method: public static void art.Test1984$Transform.tick() ACCESS: public static boolean art.Test1984… 6 method: public static void art.Test1984$Transform.tick() ACCESS: public static boolean art.Test1984… 7 method: public static void art.Test1984$Transform.tick() MODIFY: public static boolean art.Test1984… 8 method: public static void art.Test1984$Transform.tick() ACCESS: public static int art.Test1984$Tra… 9 method: public static void art.Test1984$Transform.tick() ACCESS: public static boolean art.Test1984… 10 method: public static void art.Test1984$Transform.tick() ACCESS: public static boolean art.Test1984… 11 method: public static void art.Test1984$Transform.tick() MODIFY: public static boolean art.Test1984… [all …]
|
/art/test/1997-structural-shadow-method/src/art/ |
D | Test1997.java | 31 public static class Transform extends SuperTransform { class in Test1997 33 Transform.sayHi(); in sayHiTwice() 34 Transform.sayHi(); in sayHiTwice() 78 Transform.sayHiTwice(); in doTest() 79 Transform.sayHi(); in doTest() 80 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest() 81 Transform.sayHiTwice(); in doTest() 82 Transform.sayHi(); in doTest()
|
/art/test/917-fields-transformation/src/art/ |
D | Test917.java | 22 static class Transform { class in Test917 26 public Transform(String take1, String take2) { in Transform() method in Test917.Transform 81 doTest(new Transform("Hello", "Goodbye"), in run() 82 new Transform("start", "end")); in run() 85 private static void printTransform(Transform t) { in printTransform() 90 public static void doTest(Transform t1, Transform t2) { in doTest() 93 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES); in doTest()
|
/art/test/2035-structural-native-method/src-art/art/ |
D | Test2035.java | 23 public static class Transform { class in Test2035 24 public Transform() {} in Transform() method in Test2035.Transform 72 LinkClassMethods(Transform.class); in doTest() 73 Transform t = new Transform(); in doTest() 75 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest() 78 "non-native value is " + Transform.class.getDeclaredMethod("nonNativeValue").invoke(t)); in doTest()
|
/art/test/1990-structural-bad-verify/src/art/ |
D | Test1990.java | 22 static class Transform { class in Test1990 115 doTest(new Transform()); in run() 118 public static void doTest(Transform t) throws Exception { in doTest() 119 Transform.saySomething(); in doTest() 120 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest() 121 Transform.saySomething(); in doTest()
|
/art/test/1981-structural-redef-private-method-handles/src/art/ |
D | Test1981.java | 88 public static class Transform { class in Test1981 118 return Transform.class.toString() + "[FOO: " + FOO + ", BAR: " + BAR + "]"; in staticToString() 173 System.out.println("Initial: " + Transform.staticToString()); in doTest() 174 MethodHandles.Lookup lookup = Transform.getLookup(); in doTest() 181 lookup.findStaticGetter(Transform.class, "FOO", Object.class), in doTest() 182 lookup.findStaticGetter(Transform.class, "BAR", Object.class), in doTest() 184 Object foo_handle = vh.findStaticVarHandle(lookup, Transform.class, "FOO", Object.class); in doTest() 187 foo_handle, vh.findStaticVarHandle(lookup, Transform.class, "BAR", Object.class), in doTest() 208 MethodHandle old_field_write = lookup.findStaticSetter(Transform.class, "FOO", Object.class); in doTest() 211 Redefinition.doCommonStructuralClassRedefinition(Transform.class, REDEFINED_DEX_BYTES); in doTest() [all …]
|
/art/test/921-hello-failure/src/ |
D | Main.java | 23 Verification.doTest(new Transform()); in main() 24 NewName.doTest(new Transform()); in main() 25 DifferentAccess.doTest(new Transform()); in main() 29 MultiRedef.doTest(new Transform(), new Transform2()); in main() 30 MultiRetrans.doTest(new Transform(), new Transform2()); in main() 31 NewMethod.doTest(new Transform()); in main() 33 MethodChange.doTest(new Transform()); in main() 34 NewField.doTest(new Transform()); in main() 37 Unmodifiable.doTest(new Transform[] { new Transform(), }); in main()
|
/art/test/1982-no-virtuals-structural-redefinition/src/art/ |
D | Test1982.java | 56 Redefinition.doCommonStructuralClassRedefinition(Transform.class, REDEFINED_DEX_BYTES); in doRedefinition() 79 public static class Transform extends SuperTransform { class in Test1982 105 public Transform(int id) { in Transform() method in Test1982.Transform 110 return Transform.class.toString() + "[FOO: " + FOO + ", BAR: " + BAR + "]"; in staticToString() 114 public static class SubTransform extends Transform { 168 Transform t1 = new Transform(1); in doTest() 170 readReflective("Reading with reflection.", Transform.class.getDeclaredFields(), null); in doTest() 174 System.out.println("Read BAR field: " + printGeneric(Transform.BAR)); in doTest() 175 System.out.println("Read FOO field: " + printGeneric(Transform.FOO)); in doTest() 179 System.out.println("Redefined: " + Transform.staticToString()); in doTest() [all …]
|
/art/test/932-transform-saves/src/art/ |
D | Test932.java | 24 static class Transform { class in Test932 106 doTest(new Transform()); in run() 109 public static void doTest(Transform t) { in doTest() 115 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES_A, DEX_BYTES_A); in doTest() 121 Redefinition.doCommonClassRetransformation(Transform.class); in doTest() 126 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/1984-structural-redefine-field-trace/src/art/ |
D | Test1984.java | 34 public static class Transform { class in Test1984 94 for (Field f : Transform.class.getDeclaredFields()) { in run() 116 for (Field f : Transform.class.getDeclaredFields()) { in run() 121 Transform.tick(); // count_down = 2 in run() 122 Transform.tick(); // count_down = 1 in run() 124 Redefinition.doCommonStructuralClassRedefinition(Transform.class, REDEFINED_DEX_BYTES); in run() 125 Transform.tick(); // count_down = 1 in run() 126 Transform.tick(); // count_down = 0 in run() 128 for (Field f : Transform.class.getDeclaredFields()) { in run()
|
/art/test/1985-structural-redefine-stack-scope/src/ |
D | Main.java | 23 public static final class Transform { class in Main 66 Field f = Transform.class.getDeclaredField("foo"); in main() 67 Transform.foo = "THIS IS A FOO VALUE"; in main() 68 assertEquals(f.get(null), Transform.foo); in main() 73 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in main() 75 assertEquals(j.invokeExact(), Transform.foo); in main()
|
/art/test/1979-threaded-structural-transformation/src/art/ |
D | Test1979.java | 59 Transform.class, REDEFINED_DEX_BYTES); in doRedefinition() 64 for (Field f : Transform.class.getFields()) { in readReflective() 69 public static class Transform { class in Test1979 88 return Transform.class.toString() + "[FOO: " + FOO + ", BAR: " + BAR + "]"; in staticToString() 140 System.out.println("Hitting class " + Transform.staticToString()); in doTest() 147 System.out.println("Initial: " + Transform.staticToString()); in doTest() 150 System.out.println("Read BAR field: " + printGeneric(Transform.BAR)); in doTest() 151 System.out.println("Read FOO field: " + printGeneric(Transform.FOO)); in doTest() 157 System.out.println("Redefined: " + Transform.staticToString()); in doTest() 160 System.out.println("Read FOO field: " + printGeneric(Transform.FOO)); in doTest() [all …]
|
/art/test/986-native-method-bind/src/art/ |
D | Test986.java | 26 static class Transform { class in Test986 58 Method say_hi_method = Transform.class.getDeclaredMethod("sayHi"); in doTest() 61 Transform.sayHi2(); in doTest() 65 Transform.sayHi(); in doTest() 70 Transform.sayHi(); in doTest() 75 Transform.sayHi(); in doTest() 94 rebindTransformClass(Transform.class); in rebindTransformClass()
|
/art/test/1993-fallback-non-structural/src/art/ |
D | Test1993.java | 23 static class Transform { class in Test1993 67 doTest(new Transform()); in run() 70 public static void doTest(Transform t) throws Exception { in doTest() 72 Redefinition.isStructurallyModifiable(Transform.class)); in doTest() 74 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest() 79 Object ext_data = ext_data_field.get(Transform.class); in doTest()
|
/art/test/2008-redefine-then-old-reflect-field/src/art/ |
D | Test2008.java | 28 public static class Transform { class in Test2008 29 public Transform() { myField = "bar"; } in Transform() method in Test2008.Transform 76 Transform t = new Transform(); in doTest() 77 Field f = Transform.class.getDeclaredField("myField"); in doTest() 79 Redefinition.doCommonClassRedefinition(Transform.class, CLASS_BYTES, DEX_BYTES); in doTest()
|
/art/test/986-native-method-bind/ |
D | expected.txt | 1 private static native void art.Test986$Transform.sayHi2() = Java_art_Test986_00024Transform_sayHi2 … 3 private static native void art.Test986$Transform.sayHi() = Java_art_Test986_00024Transform_sayHi__ … 6 private static native void art.Test986$Transform.sayHi() = Java_art_Test986_00024Transform_sayHi__ … 7 private static native void art.Test986$Transform.sayHi2() = Java_art_Test986_00024Transform_sayHi2 … 9 private static native void art.Test986$Transform.sayHi() = Java_art_Test986_00024Transform_sayHi__ … 10 private static native void art.Test986$Transform.sayHi2() = Java_art_Test986_00024Transform_sayHi2 …
|
/art/test/935-non-retransformable/src-ex/ |
D | TestMain.java | 21 Transform t = new Transform(); in runTest() 24 Method hi = Transform.class.getMethod("sayHi"); in runTest() 25 Method bye = Transform.class.getMethod("sayGoodbye"); in runTest()
|
/art/test/1978-regular-obsolete-then-structural-obsolescence/src/art/ |
D | Test1978.java | 26 static class Transform { class in Test1978 188 Transform.sayHi( in doTest() 195 Transform.sayHi( in doTest() 199 Transform.class, new byte[] {}, NON_STRUCTURAL_DEX_BYTES); in doTest() 203 Redefinition.doCommonStructuralClassRedefinition(Transform.class, STRUCTURAL_DEX_BYTES); in doTest() 205 Transform.sayHi( in doTest()
|
/art/test/982-ok-no-retransform/src/art/ |
D | Test982.java | 22 static class Transform { class in Test982 30 doTest(new Transform()); in run() 33 public static void doTest(Transform t) { in doTest() 36 Redefinition.doCommonClassRetransformation(Transform.class); in doTest()
|
/art/test/1977-hello-structural-obsolescence/src/art/ |
D | Test1977.java | 27 static class Transform { class in Test1977 105 Transform.sayHi( in doTest() 109 Transform.sayHi( in doTest() 112 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest() 114 Transform.sayHi( in doTest()
|
/art/test/1979-threaded-structural-transformation/ |
D | expected.txt | 1 Hitting class class art.Test1979$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIELD>] 2 Initial: class art.Test1979$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIELD>] 4 public static java.lang.Object art.Test1979$Transform.BAR = (ID: 0) value of <BAR FIELD> 5 public static java.lang.Object art.Test1979$Transform.FOO = (ID: 1) value of <FOO FIELD> 9 Redefined: class art.Test1979$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIELD>, BAZ: … 11 public static java.lang.Object art.Test1979$Transform.BAR = (ID: 0) value of <BAR FIELD> 12 public static java.lang.Object art.Test1979$Transform.BAZ = (ID: 2) <NULL> 13 public static java.lang.Object art.Test1979$Transform.FOO = (ID: 1) value of <FOO FIELD>
|
/art/test/1994-final-virtual-structural/src/art/ |
D | Test1994.java | 22 public static final class Transform { class in Test1994 80 doTest(new Transform()); in run() 83 public static void doTest(Transform t) { in doTest() 85 Redefinition.doCommonStructuralClassRedefinition(Transform.class, DEX_BYTES); in doTest()
|
/art/test/1991-hello-structural-retransform/src/art/ |
D | Test1991.java | 22 static class Transform { class in Test1991 73 Transform.sayHi(); in doTest() 76 Redefinition.doCommonClassRetransformation(Transform.class); in doTest() 77 Transform.sayHi(); in doTest()
|
/art/test/948-change-annotations/ |
D | expected.txt | 3 method public void Transform.sayHi() -> [@TestMethodAnnotation1(value=hi hi)] 7 method public void Transform.sayHi() -> [] 10 method public void Transform.sayHi() -> [@TestMethodAnnotation1(value=hi hi)] 14 method public void Transform.sayHi() -> [@TestMethodAnnotation1(value=hi hi), @TestMethodAnnotation… 17 method public void Transform.sayHi() -> [@TestMethodAnnotation1(value=hi hi)] 21 method public void Transform.sayHi() -> [@TestMethodAnnotation1(value=Bye Bye)]
|
/art/test/1982-no-virtuals-structural-redefinition/ |
D | expected.txt | 2 public static java.lang.Object art.Test1982$Transform.BAR on (ID: 0) <NULL> = (ID: 1) value of <BAR… 3 public static java.lang.Object art.Test1982$Transform.FOO on (ID: 0) <NULL> = (ID: 2) value of <FOO… 5 public static java.lang.Object art.Test1982$Transform.BAR on (ID: 3) SuperTransform { id: 2, class:… 6 public static java.lang.Object art.Test1982$Transform.FOO on (ID: 3) SuperTransform { id: 2, class:… 11 t1 is (ID: 5) SuperTransform { id: 1, class: class art.Test1982$Transform } 13 Redefined: class art.Test1982$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIELD>, BAZ: … 15 public static java.lang.Object art.Test1982$Transform.BAR on (ID: 0) <NULL> = (ID: 1) value of <BAR… 16 public static java.lang.Object art.Test1982$Transform.BAZ on (ID: 0) <NULL> = (ID: 0) <NULL> 17 public static java.lang.Object art.Test1982$Transform.FOO on (ID: 0) <NULL> = (ID: 2) value of <FOO… 19 public static java.lang.Object art.Test1982$Transform.BAR on (ID: 3) SuperTransform { id: 2, class:… [all …]
|