ThomasKrieger opened a new issue, #16033:
URL: https://github.com/apache/lucene/issues/16033
### Description
There is a data race in `org.apache.lucene.util.hnsw.BlockingFloatHeap`
The variable `size` which for example gets updated `offer` is accessed
outside a lock in the method `poll` leading to a data race:
```
public float poll() {
if (size > 0) {
float result;
lock.lock();
```
The data race can be reproduced with VMLens the test case is here:
[VMLens
testcase](https://github.com/vmlens/vmlens-examples/blob/master/lucene/src/test/java/org/apache/lucene/util/hnsw/TestBlockingFloatHeap.java)
### Version and environment details
MacOs
JVM 25
Lucence Core 10.3.2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]