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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -