On Fri, 24 Mar 2023 17:11:46 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:
> AFAIU, these places now could get outdated information from the contains > function: either getting a false positive or a false negative when asking for > a given object. But if I understand correctly, this had been the case before, > too. Since the information about ownership may be outdated as soon as one > read the BasicLock* address from the markwork. So these APIs do only report a > state that once had been, but never the current state. Sure but my concern is not stale data, it is whether the lock-stack code may crash (or otherwise misbehave) if there are concurrent changes to it whilst it is being queried. ------------- PR Comment: https://git.openjdk.org/jdk/pull/10907#issuecomment-1484401692