When I reading the book of "Scala in depth", it mentions that HotSpot compiler has several important features, one of them is "Dynamic De-Optimization":
It is the ability to determine if an optimization did not, in fact, improve performance and undo that optimization,allowing others to be applied
It seems HotSpot will try all kinds of "optimization"s, and choose the best one of them.
But I'm not quite understand it. Is the "optimization" here all provided by HotSpot? I mean programmers often try to optimize the code with some skills, will HotSpot handle them?
And is there any common "optimization"s will HotSpot try?