File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
test/hotspot/jtreg/compiler/c1 Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 2424/*
2525 * @test
2626 * @bug 8184271
27- * @summary Test correct scheduling of System.nanoTime and System.currentTimeMillis C1 intrinsics .
27+ * @summary Test correct scheduling of System.nanoTime C1 intrinsic .
2828 * @run main/othervm -XX:TieredStopAtLevel=1 -Xbatch
2929 * -XX:CompileCommand=dontinline,compiler.c1.TestPinnedIntrinsics::checkNanoTime
30- * -XX:CompileCommand=dontinline,compiler.c1.TestPinnedIntrinsics::checkCurrentTimeMillis
3130 * compiler.c1.TestPinnedIntrinsics
3231 */
3332
@@ -47,22 +46,9 @@ private static void checkNanoTime(long diff) {
4746 }
4847 }
4948
50- private static void testCurrentTimeMillis () {
51- long start = System .currentTimeMillis ();
52- long end = System .currentTimeMillis ();
53- checkCurrentTimeMillis (end - start );
54- }
55-
56- private static void checkCurrentTimeMillis (long diff ) {
57- if (diff < 0 ) {
58- throw new RuntimeException ("testCurrentTimeMillis failed with " + diff );
59- }
60- }
61-
6249 public static void main (String [] args ) {
6350 for (int i = 0 ; i < 100_000 ; ++i ) {
6451 testNanoTime ();
65- testCurrentTimeMillis ();
6652 }
6753 }
6854}
You can’t perform that action at this time.
0 commit comments