hotspot support dynamic expansion method stack

xun.chen at ele.me xun.chen at ele.me
Wed Nov 27 04:13:29 UTC 2019


thanks ,hotspot uses threads with fixed stack sizes 。 Which jvm vendors support dynamic stacks?

—————————
陈勋(ace)上海-营销中台研发部 ELEME Inc.
email:xun.chen at ele.me<mailto:xun.chen at ele.me> | mobile:+86 15216614939
http://ele.me 饿了么




在 2019年11月27日,上午7:57,David Holmes <david.holmes at oracle.com<mailto:david.holmes at oracle.com>> 写道:

Hi,

On 26/11/2019 5:29 pm, xun.chen at ele.me<mailto:xun.chen at ele.me> wrote:
hi:
The Java virtual machine specification specifies two exception conditions for this area: If the stack depth requested by the thread is greater than the depth allowed by the virtual machine, a StackOverflowError exception will be thrown. If the virtual machine fails to apply for enough memory, it will run OutOfMemoryError exception.
But Does hotspot support dynamic expansion method stack?

hotspot uses threads with fixed stack sizes.

How to reproduce this phenomenon ?

You want to know how to generate a StackOverflowError? Just keep recursing into a function.

David
-----

—————————
陈勋(ace)上海-营销中台研发部 ELEME Inc.
email:xun.chen at ele.me<mailto:xun.chen at ele.me><mailto:xun.chen at ele.me> | mobile:+86 15216614939
http://ele.me 饿了么



More information about the hotspot-runtime-dev mailing list