Re: RFR: 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12 [v2]

2020-12-08 Thread Martin Buchholz
OK, rollback committed to CVS:

--- src/main/java/util/concurrent/ThreadPoolExecutor.java 27 Nov 2020
17:42:00 - 1.194
+++ src/main/java/util/concurrent/ThreadPoolExecutor.java 8 Dec 2020
20:31:54 -
@@ -1522,13 +1522,11 @@
 // As a heuristic, prestart enough new workers (up to new
 // core size) to handle the current number of tasks in
 // queue, but stop if queue becomes empty while doing so.
-/*
 int k = Math.min(delta, workQueue.size());
 while (k-- > 0 && addWorker(null, true)) {
 if (workQueue.isEmpty())
 break;
 }
-*/
 }
 }

On Tue, Dec 8, 2020 at 4:04 AM Doug Lea  wrote:

>
> On 12/8/20 3:56 AM, Alan Bateman wrote:
> >> 1558: break;
> >> 1559: }
> >> 1560: */
> > Is this meant to be commented out?
> Yes, but It should be marked as a possible improvement, not yet
> committed. While this (prestarting) would improve performance in some
> scenarios, it may also disrupt expectations and even tooling in some
> existing usages, which we haven't fully checked out.
>
>


Re: RFR: 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12 [v2]

2020-12-08 Thread Doug Lea



On 12/8/20 3:56 AM, Alan Bateman wrote:

1558: break;
1559: }
1560: */

Is this meant to be commented out?
Yes, but It should be marked as a possible improvement, not yet 
committed. While this (prestarting) would improve performance in some 
scenarios, it may also disrupt expectations and even tooling in some 
existing usages, which we haven't fully checked out.




Re: RFR: 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12 [v2]

2020-12-08 Thread Pavel Rappo
On Tue, 8 Dec 2020 08:53:38 GMT, Alan Bateman  wrote:

>> Martin Buchholz has refreshed the contents of this pull request, and 
>> previous commits have been removed. The incremental views will show 
>> differences compared to the previous content of the PR.
>
> src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java line 
> 1560:
> 
>> 1558: break;
>> 1559: }
>> 1560: */
> 
> Is this meant to be commented out?

This code was also commented out in the original CVS repo; here's the diff: 
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java?r1=1.193=1.194

The message for the `1.194` revision suggests we should NOT expect code 
changes. I've double-checked my patch, which is at least partially responsible 
for the `1.194` revision, and couldn't find that commenting out part.

-

PR: https://git.openjdk.java.net/jdk/pull/1647


Re: RFR: 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12 [v2]

2020-12-08 Thread Alan Bateman
On Tue, 8 Dec 2020 06:11:27 GMT, Martin Buchholz  wrote:

>> 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12
>
> Martin Buchholz has refreshed the contents of this pull request, and previous 
> commits have been removed. The incremental views will show differences 
> compared to the previous content of the PR.

src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java line 
1560:

> 1558: break;
> 1559: }
> 1560: */

Is this meant to be commented out?

-

PR: https://git.openjdk.java.net/jdk/pull/1647


Re: RFR: 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12 [v2]

2020-12-07 Thread Martin Buchholz
> 8234131: Miscellaneous changes imported from jsr166 CVS 2020-12

Martin Buchholz has refreshed the contents of this pull request, and previous 
commits have been removed. The incremental views will show differences compared 
to the previous content of the PR. The pull request contains one new commit 
since the last revision:

  JDK-8234131

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1647/files
  - new: https://git.openjdk.java.net/jdk/pull/1647/files/ed43b3fe..a6d85863

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=1647=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=1647=00-01

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1647.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1647/head:pull/1647

PR: https://git.openjdk.java.net/jdk/pull/1647