paulirwin opened a new pull request, #1064:
URL: https://github.com/apache/lucenenet/pull/1064

   - [X] You've read the [Contributor 
Guide](https://github.com/apache/lucenenet/blob/main/CONTRIBUTING.md) and [Code 
of Conduct](https://www.apache.org/foundation/policies/conduct.html).
   - [X] You've included unit or integration tests for your change, where 
applicable.
   - [X] You've included inline docs for your change, where applicable.
   - [X] There's an open issue for the PR that you are making. If you'd like to 
propose a change, please [open an 
issue](https://github.com/apache/lucenenet/issues/new/choose) to discuss the 
change or find an existing issue.
   
   Convert long/double values that are volatile in Lucene (but can't be in 
.NET) to AtomicInt64 or (new) AtomicDouble.
   
   Fixes #1063
   
   ## Description
   
   Since we can't use `volatile` on 64-bit values in .NET, this doesn't work 
for `long` or `double`. This PR changes `volatile long` fields to be 
`AtomicInt64` from J2N, as well as introduces a new internal `AtomicDouble` 
type in Support for those values, using bit conversion to/from long internally 
so that we can use Interlocked on it.
   


-- 
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: dev-unsubscr...@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to