File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
test/jdk/java/nio/channels/Selector Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
41
41
*/
42
42
public class RacyDeregister {
43
43
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
-
49
44
// 90% of 1200 second timeout as milliseconds
50
45
static final int TIMEOUT_THRESHOLD_MILLIS = 1200 *900 ;
51
46
@@ -90,7 +85,7 @@ public static void main(String[] args) throws Exception {
90
85
91
86
public void run () {
92
87
try {
93
- for (int k = 0 ; k < NUM_OUTER_LOOP_ITERATIONS ; k ++) {
88
+ for (int k = 0 ; k < 15 ; k ++) {
94
89
System .out .format ("outer loop %3d at %7d ms%n" , k ,
95
90
System .currentTimeMillis () - t0 );
96
91
System .out .flush ();
You can’t perform that action at this time.
0 commit comments