RFR: 8304138: [JVMCI] Test FailedSpeculation existence before appending. [v2]

Yudi Zheng yzheng at openjdk.org
Tue Mar 14 15:45:17 UTC 2023


On Tue, 14 Mar 2023 15:25:42 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> I agree that it is better than before. But without some kind of lock several threads can add the same speculation data in the window between new check and adding data to the list.

Right. We can bear a few redundant FailedSpeculation entries, and would like to avoid locking in this fast path.

-------------

PR: https://git.openjdk.org/jdk/pull/13022


More information about the hotspot-compiler-dev mailing list