Method and apparatus for identifying hotspot intermediate code in language virtual machine
US10871976B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | Jun 1, 2018 |
| Grant date | Dec 22, 2020 |
| Priority date | — |
| Expiry date | Jun 1, 2038 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F9/4552
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
The present disclosure provide a method and an apparatus for identifying hotspot intermediate code. The method for identifying hotspot intermediate code includes: when a language virtual machine executes a to-be-identified function, obtaining an instruction address in an instruction counter, and determining whether a native instruction corresponding to the instruction address is a native instruction of the to-be-identified function; when the native instruction corresponding to the instruction address is the native instruction of the to-be-identified function, increasing a current hotness value of the to-be-identified function by a preset value; and determining whether an updated hotness value of the to-be-identified function is greater than or equal to a hotness threshold of the to-be-identified function, and when the updated hotness value of the to-be-identified function is greater than or equal to the hotness threshold of the to-be-identified function, using intermediate code of the to-be-identified function as hotspot intermediate code.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.