top | item 46087500

(no title)

ErikCorry | 3 months ago

Nice!

Why malloc? Surely this is an on-heap object, not malloc allocated?

discuss

order

tialaramex|3 months ago

I think you've got yourself confused. The heap is what malloc is allocating. So it's like you said "Surely this is somewhere in Europe, not France?" or "Surely this is a round shape, not a circle?"

comex|3 months ago

Not when we’re talking about a JVM, which has its own heap that does not use malloc.