阅读背景:

Java内存碎片和大型数组的分配

来源:互联网 

I was considering using the Timer class for a large number of TimerTasks (say one or two million). The heap implementation for Timer is array based, and since there is no way to reserve space for the array, the question arises, how does Java handle allocation of large contiguous memory blocks (for an array in this case) when memory is fragmented?I was considering using the Timer class for a l




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: