OpenJDK / amber / amber
changeset 57149:c9093341cfe2
8226706: (se) Reduce the number of outer loop iterations on Windows in java/nio/channels/Selector/RacyDeregister.java
Reviewed-by: alanb
author | bpb |
---|---|
date | Fri, 28 Jun 2019 13:02:18 -0700 |
parents | b279ae9843b8 |
children | 1de28d191f9c |
files | test/jdk/java/nio/channels/Selector/RacyDeregister.java |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/test/jdk/java/nio/channels/Selector/RacyDeregister.java Fri Jun 28 09:49:10 2019 -0700 +++ b/test/jdk/java/nio/channels/Selector/RacyDeregister.java Fri Jun 28 13:02:18 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,11 +41,6 @@ */ public class RacyDeregister { - // FIXME: NUM_OUTER_LOOP_ITERATIONS should be reverted to the hard-coded - // value 15 when JDK-8161083 is resolved as either a bug or a non-issue. - static final int NUM_OUTER_LOOP_ITERATIONS = - System.getProperty("os.name").startsWith("Windows") ? 150 : 15; - // 90% of 1200 second timeout as milliseconds static final int TIMEOUT_THRESHOLD_MILLIS = 1200*900; @@ -90,7 +85,7 @@ public void run() { try { - for (int k = 0; k < NUM_OUTER_LOOP_ITERATIONS; k++) { + for (int k = 0; k < 15; k++) { System.out.format("outer loop %3d at %7d ms%n", k, System.currentTimeMillis() - t0); System.out.flush();