java - are the new objects assigned from eden space or eden + fromSurvivor space? -
are new objets assigned eden space or eden + fromsurvivor space ? can free space in survivor space used allocation new objects?
edit : consider scenario: suppose eden space full , survivor space occupancy less, in case if new object created (new object small enough fit survivor space) minor collection occur or space new object allocated fromsurvivor space?
i believe eden space used small objects, , large objects allocated directly in old space. if new objects allocated in survivor space, kinda defeat point of having separate spaces.
see this pdf more details, including:
most objects allocated in eden. (as mentioned, few large objects may allocated directly in old generation.)
Comments
Post a Comment