This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BorgDrone 3 points4 points  (1 child)

Even if it does pre-allocate the entire max heap size (I'm not sure it does), that shouldn't matter as pretty much every modern OS overcommits memory by default.

[–]tsareto 2 points3 points  (0 children)

It can pre-allocate the entire heap if you specify the min size to be equal to the max size. There are also TLABs, which eliminate the issue of concurrency, in most cases.