/art/test/712-varhandle-invocations/src/ |
D | VarHandleArrayTests.java | 28 private static final Integer TWO = Integer.valueOf(2); field in VarHandleArrayTests.ArrayStoreTest 58 assertEquals(ONE, (Integer) vh.compareAndExchange(values, 0, ONE, TWO)); in testIntegerArrayVarHandle() 59 assertEquals(TWO, values[0]); in testIntegerArrayVarHandle() 60 assertEquals(TWO, (Integer) vh.compareAndExchange(values, 0, ONE, ZERO)); in testIntegerArrayVarHandle() 61 assertEquals(TWO, values[0]); in testIntegerArrayVarHandle() 70 assertEquals(true, (boolean) vh.compareAndSet(values, 0, TWO, ONE)); in testIntegerArrayVarHandle() 72 assertEquals(false, (boolean) vh.compareAndSet(values, 0, ZERO, TWO)); in testIntegerArrayVarHandle() 96 assertEquals(ONE, vho.getAndSetAcquire(values, 0, TWO)); in testObjectArrayVarHandle() 105 assertEquals(TWO, vho.compareAndExchange(values, 0, TWO, ZERO)); in testObjectArrayVarHandle() 106 assertThrowsAIOBE(() -> vho.compareAndExchange(values, values.length, ONE, TWO)); in testObjectArrayVarHandle() [all …]
|
D | Widget.java | 40 public static final Widget TWO = new Widget(2); field in Widget
|
D | VarHandleTypeConversionTests.java | 1126 public static final WidgetChild TWO = new WidgetChild(2, 2000); field in VarHandleTypeConversionTests.SubtypeTest.WidgetChild 1138 vh.compareAndExchangeRelease(this, WidgetChild.ONE, WidgetChild.TWO); in doTest() 1139 assertEquals(WidgetChild.TWO, w); in doTest() 1140 rwc = (WidgetChild) vh.compareAndExchangeAcquire(this, WidgetChild.TWO, Widget.ONE); in doTest() 1143 assertEquals(true, vh.compareAndSet(this, Widget.ONE, Widget.TWO)); in doTest() 1144 assertEquals(Widget.TWO, w); in doTest() 1150 vh.setOpaque(this, WidgetChild.TWO); in doTest() 1151 assertEquals(WidgetChild.TWO, vh.getOpaque(this)); in doTest() 1152 assertEquals(WidgetChild.TWO, w); in doTest() 1158 assertEquals(WidgetChild.ONE, (WidgetChild) vh.getAndSetRelease(this, WidgetChild.TWO)); in doTest() [all …]
|
/art/test/055-enum-performance/src/ |
D | SamePackagePublicEnum.java | 2 ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, enumConstant
|
D | SamePackagePrivateEnum.java | 2 ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, enumConstant
|
/art/test/055-enum-performance/src/otherpackage/ |
D | OtherPackagePublicEnum.java | 4 ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, enumConstant
|
/art/test/721-osr/src/ |
D | Main.java | 23 TWO enumConstant
|
/art/test/715-clinit-implicit-parameter-annotations/src/ |
D | Main.java | 76 TWO(2.0), enumConstant
|