Skip to content

Commit 7dfd132

Browse files
Amos ShiGoeLin
authored andcommitted
8226706: (se) Reduce the number of outer loop iterations on Windows in java/nio/channels/Selector/RacyDeregister.java
Backport-of: 4d1ff6a
1 parent d4fcded commit 7dfd132

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/jdk/java/nio/channels/Selector/RacyDeregister.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -41,11 +41,6 @@
4141
*/
4242
public class RacyDeregister {
4343

44-
// FIXME: NUM_OUTER_LOOP_ITERATIONS should be reverted to the hard-coded
45-
// value 15 when JDK-8161083 is resolved as either a bug or a non-issue.
46-
static final int NUM_OUTER_LOOP_ITERATIONS =
47-
System.getProperty("os.name").startsWith("Windows") ? 150 : 15;
48-
4944
// 90% of 1200 second timeout as milliseconds
5045
static final int TIMEOUT_THRESHOLD_MILLIS = 1200*900;
5146

@@ -90,7 +85,7 @@ public static void main(String[] args) throws Exception {
9085

9186
public void run() {
9287
try {
93-
for (int k = 0; k < NUM_OUTER_LOOP_ITERATIONS; k++) {
88+
for (int k = 0; k < 15; k++) {
9489
System.out.format("outer loop %3d at %7d ms%n", k,
9590
System.currentTimeMillis() - t0);
9691
System.out.flush();

0 commit comments

Comments
 (0)