Home > Back-end >  2020-11-18: in Java, exactly how the object can be directly into the old s?
2020-11-18: in Java, exactly how the object can be directly into the old s?

Time:11-19

2020-11-18: in Java, exactly how the object can be directly into the old s? # # f greatly architects a daily topic

CodePudding user response:

- XX: PretenureSizeThreshold parameters, is more than setting the parameter values of the object.

CodePudding user response:

https://blog.csdn.net/w605283073/article/details/94363110
Checked the, the function of this parameter is large data objects into the Eden area not directly into the old?

CodePudding user response:

reference new village, 1/f, 0617 response:
- XX: PretenureSizeThreshold parameters, greater than setting the parameter value of the object.

https://blog.csdn.net/w605283073/article/details/94363110
Checked the, the function of this parameter is large data objects into the Eden area not directly into the old?

CodePudding user response:

There are a lot of logic, one when the size of the object is greater than the young generation

CodePudding user response:

This just upstairs to say - XX: PretenureSizeThreshold parameters on the one hand, but if the young generation set is large, this parameter is useless, and if you have this object is just a method of local objects, also won't throw into old age, a word into the old age is a very complex process of judgment, the JVM will consider many because, in addition will also and you set the GC, as now the G1 designer judgment more complicated,
  • Related