Concept 1: When a virtual machine running a discovery method particularly frequent or code blocks, the code will be recognized as a hotspot code. In order to improve the efficiency of the hot code at runtime, the virtual machine will put that code compiled into machine code associated with the native platforms, and a variety of degree-level optimization, the completion of this task is called a compiler-time compiler .
Code 2 Hot divided into two categories:
The code is called multiple times
The loop is executed twice
3 the hot spot detection:
Focus detection based on a counter, with a number of method invocation counter for a method call recording. There back side counter is used to record the number of times a method to execute a round body.