Can an object be created in the old generation?

A new generation stands out as a newly created object. Is it possible that the newly created object is directly tied to the old or generation generation? if so, on what grounds?

+5
source share
1 answer

See " Garbage Collection FAQ on the JavaTM HotspotTM Virtual Machine ":

Are objects ever distributed directly to the old generation?

In 1.4.1, there are two situations where distribution can occur directly in the old generation.

, , , . , ​​ , .

( 1.4.2 ) l-XX: PretenureSizeThreshold =, . , .

1) 64 . . PretenureSizeThreshold 0, , .

1.4.2 1) 64k (-Xincgc). (-XX: + UseConcMarkSweepGC) , , , ( , ). , 1.4.1 ( ). , .

+8

All Articles