Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v6]

2023-06-15 Thread Man Cao
On Thu, 15 Jun 2023 18:22:46 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request incrementally with one additional

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v6]

2023-06-15 Thread Roger Riggs
On Thu, 15 Jun 2023 18:22:46 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request incrementally with one additional

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v5]

2023-06-15 Thread Man Cao
On Thu, 15 Jun 2023 08:23:58 GMT, Aleksey Shipilev wrote: >> Man Cao has updated the pull request with a new target base due to a merge >> or a rebase. The incremental webrev excludes the unrelated changes brought >> in by the merge/rebase. The pull request contains five additional commits >>

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v6]

2023-06-15 Thread Aleksey Shipilev
On Thu, 15 Jun 2023 18:17:17 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request incrementally with one additional

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v6]

2023-06-15 Thread Man Cao
> Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Man Cao has updated the pull request incrementally with one additional commit since the last revision: Update comment --

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v5]

2023-06-15 Thread Aleksey Shipilev
On Thu, 15 Jun 2023 00:16:15 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request with a new target base due to a m

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v5]

2023-06-14 Thread Man Cao
> Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Man Cao has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unre

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v4]

2023-06-14 Thread Man Cao
On Thu, 15 Jun 2023 00:05:32 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request incrementally with one additional

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v4]

2023-06-14 Thread Man Cao
> Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Man Cao has updated the pull request incrementally with one additional commit since the last revision: Removed volatile and c

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v3]

2023-06-14 Thread Aleksey Shipilev
On Tue, 13 Jun 2023 20:42:49 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request incrementally with one additional

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v2]

2023-06-13 Thread Man Cao
On Tue, 13 Jun 2023 19:42:44 GMT, Aleksey Shipilev wrote: >> Man Cao has updated the pull request with a new target base due to a merge >> or a rebase. The incremental webrev excludes the unrelated changes brought >> in by the merge/rebase. The pull request contains two additional commits >> s

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v3]

2023-06-13 Thread Man Cao
> Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Man Cao has updated the pull request incrementally with one additional commit since the last revision: Switch to using volati

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v2]

2023-06-13 Thread Aleksey Shipilev
On Tue, 13 Jun 2023 19:24:08 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this small fix for a data race in >> java.io.ClassCache$CacheRef? This fix makes the code safer by making the >> code data-race-free. > > Man Cao has updated the pull request with a new target base due to a m

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v2]

2023-06-13 Thread Man Cao
> Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Man Cao has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unre

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-12 Thread Roger Riggs
On Thu, 8 Jun 2023 22:06:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Looks fine. - Marked as reviewed by rriggs (Reviewer). PR Review

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-09 Thread Man Cao
On Thu, 8 Jun 2023 22:06:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. Agree with the analysis that this race looks benign, and the slight change in

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-09 Thread Roger Riggs
On Thu, 8 Jun 2023 22:06:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. I think the race is benign also but the change maintains the essential semanti

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-09 Thread Alan Bateman
On Thu, 8 Jun 2023 22:06:56 GMT, Man Cao wrote: > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. If I read the existing code correctly, ClassCache::get can't return null. If there are two

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-08 Thread Man Cao
On Thu, 8 Jun 2023 22:06:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. The presubmit failure on linux-x86 looks unrelated to this PR. It is https://b

Re: RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-08 Thread Man Cao
On Thu, 8 Jun 2023 22:06:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this small fix for a data race in > java.io.ClassCache$CacheRef? This fix makes the code safer by making the code > data-race-free. The pre-submit failures for windows are due to https://bugs.openjdk.org/browse

RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent

2023-06-08 Thread Man Cao
Hi all, Could anyone review this small fix for a data race in java.io.ClassCache$CacheRef? This fix makes the code safer by making the code data-race-free. - Commit messages: - 8309688: Data race on java.io.ClassCache.strongReferent Changes: https://git.openjdk.org/jdk/pull/14386