<bdo id='oEAFh'></bdo><ul id='oEAFh'></ul>

  1. <i id='oEAFh'><tr id='oEAFh'><dt id='oEAFh'><q id='oEAFh'><span id='oEAFh'><b id='oEAFh'><form id='oEAFh'><ins id='oEAFh'></ins><ul id='oEAFh'></ul><sub id='oEAFh'></sub></form><legend id='oEAFh'></legend><bdo id='oEAFh'><pre id='oEAFh'><center id='oEAFh'></center></pre></bdo></b><th id='oEAFh'></th></span></q></dt></tr></i><div id='oEAFh'><tfoot id='oEAFh'></tfoot><dl id='oEAFh'><fieldset id='oEAFh'></fieldset></dl></div>

  2. <legend id='oEAFh'><style id='oEAFh'><dir id='oEAFh'><q id='oEAFh'></q></dir></style></legend>
  3. <tfoot id='oEAFh'></tfoot>

    <small id='oEAFh'></small><noframes id='oEAFh'>

    1. JIT 自动内联的方法的大小是多少?

      What is the size of methods that JIT automatically inlines?(JIT 自动内联的方法的大小是多少?)

          <tbody id='vcFFZ'></tbody>

            <bdo id='vcFFZ'></bdo><ul id='vcFFZ'></ul>

            • <small id='vcFFZ'></small><noframes id='vcFFZ'>

                <tfoot id='vcFFZ'></tfoot>
                <i id='vcFFZ'><tr id='vcFFZ'><dt id='vcFFZ'><q id='vcFFZ'><span id='vcFFZ'><b id='vcFFZ'><form id='vcFFZ'><ins id='vcFFZ'></ins><ul id='vcFFZ'></ul><sub id='vcFFZ'></sub></form><legend id='vcFFZ'></legend><bdo id='vcFFZ'><pre id='vcFFZ'><center id='vcFFZ'></center></pre></bdo></b><th id='vcFFZ'></th></span></q></dt></tr></i><div id='vcFFZ'><tfoot id='vcFFZ'></tfoot><dl id='vcFFZ'><fieldset id='vcFFZ'></fieldset></dl></div>

                <legend id='vcFFZ'><style id='vcFFZ'><dir id='vcFFZ'><q id='vcFFZ'></q></dir></style></legend>
              1. 本文介绍了JIT 自动内联的方法的大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我听说 JIT 会自动内联小方法,例如 getter(它们大约有 5 个字节).边界是什么?有JVM标志吗?

                I've heard that JIT automatically inlines small methods, like getters (they have about 5 bytes). What is the boundary? Is there any JVM flag?

                推荐答案

                HotSpot JIT 内联策略比较复杂.它涉及许多启发式方法,如调用方方法大小、被调用方方法大小、IR 节点数、内联深度、调用数、调用站点数、抛出数、方法签名等.

                HotSpot JIT inlining policy is rather complicated. It involves many heuristics like caller method size, callee method size, IR node count, inlining depth, invocation count, call site count, throw count, method signatures etc.

                访问器方法(getter/setter)和普通方法(字节码计数小于 6)会跳过一些限制.

                Some limits are skipped for accessor methods (getters/setters) and for trivial methods (bytecode count less than 6).

                相关源码大多在bytecodeInfo.cpp.
                请参阅 InlineTree::try_to_inlineshould_inlineshould_not_inline 函数.

                The related source code is mostly in bytecodeInfo.cpp.
                See InlineTree::try_to_inline, should_inline, should_not_inline functions.

                控制内联的主要 JVM 标志是

                The main JVM flags to control inlining are

                -XX:MaxInlineLevel (maximum number of nested calls that are inlined)
                -XX:MaxInlineSize (maximum bytecode size of a method to be inlined)
                -XX:FreqInlineSize (maximum bytecode size of a frequent method to be inlined)
                -XX:MaxTrivialSize (maximum bytecode size of a trivial method to be inlined)
                -XX:MinInliningThreshold (min. invocation count a method needs to have to be inlined)
                -XX:LiveNodeCountInliningCutoff (max number of live nodes in a method)
                

                这篇关于JIT 自动内联的方法的大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                    <bdo id='sGN3Q'></bdo><ul id='sGN3Q'></ul>
                    1. <legend id='sGN3Q'><style id='sGN3Q'><dir id='sGN3Q'><q id='sGN3Q'></q></dir></style></legend>
                        <tfoot id='sGN3Q'></tfoot>
                          <tbody id='sGN3Q'></tbody>

                        1. <i id='sGN3Q'><tr id='sGN3Q'><dt id='sGN3Q'><q id='sGN3Q'><span id='sGN3Q'><b id='sGN3Q'><form id='sGN3Q'><ins id='sGN3Q'></ins><ul id='sGN3Q'></ul><sub id='sGN3Q'></sub></form><legend id='sGN3Q'></legend><bdo id='sGN3Q'><pre id='sGN3Q'><center id='sGN3Q'></center></pre></bdo></b><th id='sGN3Q'></th></span></q></dt></tr></i><div id='sGN3Q'><tfoot id='sGN3Q'></tfoot><dl id='sGN3Q'><fieldset id='sGN3Q'></fieldset></dl></div>
                        2. <small id='sGN3Q'></small><noframes id='sGN3Q'>