Reputation: 3
I've been trying to understand JVM escape analyis recently. I tried a lot of combination of the JVM options according to this nice answer. My question is that is there any hard limit on thoses option values? Like FreqInlineSize
, MaxInlineLevel
. JVM wouldn't take it seriously when I set the options to some ridiculous value, like -XX:FreqInlineSize=65535
will it? Actually, I tried that. But jvm didn't complain about it. So I really cannot tell.
If there is some hard limit, what would that be? Where can I find the documents that describes such things?
I've been trying to find a way to force my Protobuf message and builder objects to be allocated on stack instead of on heap. Sometimes it works. But when the number of fields of the message object grows, it stopped working. I searched a lot on the internet but with little findings due to my limited understanding on the subject. So That why I am asking.
JVM version: Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Upvotes: 0
Views: 456
Reputation: 98515
INT_MAX
.NodeCountInliningCutoff
(not tunable), MaxNodeLimit
, NodeLimitFudgeFactor
etc.Upvotes: 1