Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-04-05 Thread Chen Liang
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool [v2]

2025-03-27 Thread Doug Lea
On Tue, 18 Mar 2025 09:11:00 GMT, Dmitry Chuyko wrote: >> Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) >> in one case when TC subfield in ctl field is decremented, the applied >> masking (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. >> In J

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool [v2]

2025-03-19 Thread Dmitry Chuyko
On Tue, 18 Mar 2025 09:11:00 GMT, Dmitry Chuyko wrote: >> Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) >> in one case when TC subfield in ctl field is decremented, the applied >> masking (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. >> In J

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool [v2]

2025-03-19 Thread Alan Bateman
On Tue, 18 Mar 2025 09:11:00 GMT, Dmitry Chuyko wrote: >> Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) >> in one case when TC subfield in ctl field is decremented, the applied >> masking (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. >> In J

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool [v2]

2025-03-18 Thread Dmitry Chuyko
> Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs > prior to 19 FJP may stop executing tasks, which requires

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-18 Thread Dmitry Chuyko
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-17 Thread Alan Bateman
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-17 Thread Chen Liang
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-17 Thread Dmitry Chuyko
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-17 Thread Dmitry Chuyko
On Mon, 17 Mar 2025 14:43:05 GMT, Chen Liang wrote: > It seems this is an overflow for the TC part of the flag. The RC part seems > to be able to overflow too, but because it occupies the higher bits its > overflow will never affect the TC. And this is the only site where TC is > masked with `

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-17 Thread Chen Liang
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-17 Thread Dmitry Chuyko
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >

Re: RFR: 8351933: Inaccurate masking of TC subfield decrement in ForkJoinPool

2025-03-13 Thread George
On Thu, 13 Mar 2025 13:34:51 GMT, Dmitry Chuyko wrote: > Please review a tiny fix in the ForkJoinPool. Since JDK 9 (JDK-8134852 [1]) > in one case when TC subfield in ctl field is decremented, the applied masking > (UMASK, upper bits) may not preserve neighbor RC subfield sometimes. In JDKs >