viirya commented on issue #25953: [SPARK-29244][Core] Prevent freed page in 
BytesToBytesMap free again
URL: https://github.com/apache/spark/pull/25953#issuecomment-536233734
 
 
   @JoshRosen I have tried to have a single-threaded test on BytesToBytesMap. 
But seems it might not be possible. It is because when initializing 
BytesToBytesMap, it will allocate initialCapacity memory. That says when call 
reset on it, if there is no other memory consumer to allocate memory at the 
same time, BytesToBytesMap will be sure to allocate back initialCapacity memory 
it just released, so it never hits OOM in this case.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to