uschindler edited a comment on pull request #2052:
URL: https://github.com/apache/lucene-solr/pull/2052#issuecomment-748517193


   Yes that's the issue. On windows it looks like allocateDirect does not 
allign to beginning of page at some memory location not aligned to 512 bytes. 
The alignedSlice is then smaller than expected, breaking everything.
   
   The workaround is to allocate `buffersize + blocksize - 1` and then call the 
alignment function. Afterwards remaining() should equal bufferSize.
   
   I will test a bit, but from reading the javadocs it's clear what happens.


----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to