gf2121 edited a comment on pull request #541:
URL: https://github.com/apache/lucene/pull/541#issuecomment-1019470232


   @iverase Thank you very much for helping debug so much!
   
   > I had a look into the method and I could not spot anything strange. More 
over, I replaced the line:
   > guard.getInts(curIntBufferViews[position & 0x03].position(position >>> 2), 
dst, offset, length);
   with: (Not reusing the int buffers)
   > IntBuffer intBuffer = 
curBuf.duplicate().order(ByteOrder.LITTLE_ENDIAN).position(position).asIntBuffer();
   guard.getInts(intBuffer, dst, offset, length);
   
   I found out the bug based on this clue you provided,  and fixed it in this 
[commit](https://github.com/apache/lucene/pull/541/commits/6a84978f32a73336db071f8a830f1f7135dce800).
 Also added some more tests around the `readInts`.
   
   Very sorry for my negligence, and thanks again for your help!


-- 
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: issues-unsubscr...@lucene.apache.org

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