Stack sizes and stack allocation

Kees Jan Koster kjkoster at gmail.com
Sun Aug 9 15:58:36 UTC 2015


Dear All,

Not sure if this is the right channel, please feel free to redirect my question.

Assuming Java 8 on a 64-bit Linux machine with plenty RAM: When I reduce the stack sizes for a JVM, does that impact the stack allocation algorithms of the JVM?

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?

And, how do I investigate this? How would I configure the JVM to print out details of stack allocation vs fall-back to heap?

--
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/20150809/4494ec04/signature.asc>


More information about the hotspot-gc-use mailing list