Why do hotspot generated compiled methods stash eax high up the stack before execution?

为君一笑 提交于 2019-12-05 12:42:31
the8472

It's called stackbanging. I can't find much documentation on the details, but a cursory google search indicates that it serves several purposes, such as notifying the VM through a page fault handler about the need for stack growth and ensuring it has enough headroom for internal events such as method deoptimization or unwinding the stack in case of asynchronous exceptions such as SOE or OOME.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!