Stack sizes and stack allocation
Kees Jan Koster
kjkoster at gmail.com
Wed Aug 12 11:13:00 UTC 2015
Dear Jenny,
>> Conversely, if stack allocation calls for too many objects to be allocated on the stack, does the JVM throw a stack overflow error, or fall back to heap allocation?
> No. When escape analysis is enabled, some heap objects might be put on stack though.
Just so I understand correctly: imagine escape analysis is enabled. For a certain bit of code, the escape analysis logic decides that a certain heap object can be allocated on the stack.
If the stack size is too small for that object, does the JVM throw a stack overflow error, or does the JVM allocate the object on the heap instead?
--
Kees Jan
http://java-monitor.com/
kjkoster at kjkoster.org
+31651838192
I hate unit tests; I much prefer the illusion that there are no errors in my code.
-- Hendrik Muller
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20150812/43854772/signature.asc>
More information about the hotspot-gc-use
mailing list