|
|
|
|
|
by dgb23
1002 days ago
|
|
The JVM GC has a generational model. It first allocates objects into an arena like structure. In a second step, it moves (evacuates) long lived objects into a compact region. The first region gets deallocated at once after. Roughly speaking this leans on a heuristic that most objects are short lived. So it has arena like characteristics, but is of course managed/dynamic. This might be one reason why managed languages like Java/C# get such good out of the box performance. You really need insight in your program and how it executes to beat this. |
|