RFR: 8367013: Add Atomic<T> to package/replace idiom of volatile var plus AtomicAccess:: operations

Kim Barrett kbarrett at openjdk.org
Wed Sep 24 21:55:48 UTC 2025


On Wed, 24 Sep 2025 14:36:25 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> I wonder if this is going to be problematic with other editors or if this is just a problem with Eclipse.

I can see how this code might be fairly opaque to an IDE. There's a different
way to structure things (leaning on SFINAE rather that constexpr-if and
decltype) that might be more IDE friendly, maybe? Though it seems like a
template type whose interface is dependent might be pretty hard for IDE code
completion. But that's just a guess, and not a well-informed one at that. I'll
try putting together an alternative branch tonight for you to try out.

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

PR Comment: https://git.openjdk.org/jdk/pull/27462#issuecomment-3330828460


More information about the hotspot-dev mailing list