News for hackers. Stuff that matters.
Re:Java’s new garbage collector promises low pause times on ... by chrisseaton on Thursday August 30, 2018 @01:26PM (#17878670)
You mention it in your footnote, but objects don't necessarily live on the heap - they can also live on the stack, or in registers, or in vector pipelines, or not at all.

Also an interesting aside is that objects are never 'allocated on the stack'. As in you won't find the same layout of memory on the stack as you do on the heap. Instead objects are turned into data edges in the compiler's graph. It's much more abstract than literally doing an alloca.

Re:Java’s new garbage collector promises low pause times on ... by pgwhalen on Thursday August 30, 2018 @06:23PM (#17881325)
For further details on how objects are not exactly allocated on the stack: https://shipilev.net/jvm-anatomy-park/18-scalar-replacement/