发明名称 Efficient code cache management in presence of infrequently used complied code fragments
摘要 A process, a computer program product, and a computer system for efficient code cache management implemented by a just-in-time compiler are provided. Embodiments of the present invention provide a practical approach to compile effectively for methods that are frequently executed over a short time period but are subsequently not executed frequently. The disclosed approach reduces the detrimental effects of compilation of such infrequently executed methods on throughput and garbage collection pause times.
申请公布号 US9268543(B1) 申请公布日期 2016.02.23
申请号 US201414493503 申请日期 2014.09.23
申请人 International Business Machines Corporation 发明人 Doyle Patrick R.;Mitran Marcel;Pirvu Marius;Stoodley Kevin A.;Sundaresan Vijay
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人 Li Edward
主权项 1. A process for efficient code cache management implemented by a just-in-time compiler, the process comprising: a computer processor determining whether a method is frequently executed; in response to determining that the method is frequently executed, the computer processor placing a compiled code of the method in a first code cache which is a permanent code cache; the computer processor determining whether a number of recompilations due to the method exceeds a predetermined number; in response to determining that the method is not frequently executed and determining that the number of recompilations due to the method does not exceed the predetermined number, the computer processor determining whether a second code cache is full, wherein the second code cache is a transient code cache; in response to determining that the second code cache is not full, the computer processor placing the compiled code in the second code cache; and in response to determining that the second code cache is full, the computer processor flushing a subdivision of the second code cache and then placing the compiled code in the second code cache.
地址 Armonk NY US