RFR: 8364735: [asan] heap-use-after-free error detected in defaultStream::writer during VM shutdown [v2]

Kim Barrett kbarrett at openjdk.org
Wed Sep 3 19:48:42 UTC 2025


On Wed, 3 Sep 2025 14:00:05 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> I still am not sure how the OrderAccess helps. A concurrent thread can see xtty != null and start printing while the terminating thread deletes the defaultStream under xtty? Sorry if I am slow.

I agree with @tstuefe - I'm not seeing how this actually helps. Esp. since the other side of these operations
typically (universally?) doesn't have any memory ordering, and where there are null checks they are often of
the form `if (global_x != nullptr) { ... use global_x ... }`

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

PR Comment: https://git.openjdk.org/jdk/pull/26832#issuecomment-3250549019


More information about the hotspot-dev mailing list