hotspot support dynamic expansion method stack
    David Holmes 
    david.holmes at oracle.com
       
    Tue Nov 26 23:57:50 UTC 2019
    
    
  
Hi,
On 26/11/2019 5:29 pm, 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> | mobile:+86 15216614939
> http://ele.me 饿了么
> 
> 
> 
> 
    
    
More information about the hotspot-runtime-dev
mailing list