java PrintCompilation output: what's the meaning of “made not entrant” and “made zombie”

后端 未结 4 2065
忘了有多久
忘了有多久 2021-01-30 11:06

When running a Java 1.6 (1.6.0_03-b05) app I\'ve added the -XX:+PrintCompilation flag. On the output for some methods, in particular some of those that I know are g

4条回答
  •  独厮守ぢ
    2021-01-30 11:17

    This is absolutely not an area of expertise for me, but I was interested and so did a bit of digging.

    A couple of links you might find interesting: OpenJDK:nmethod.cpp, OpenJDK:nmethod.hpp.

    A excerpt of nmethod.hpp:

    // Make the nmethod non entrant. The nmethod will continue to be
    // alive.  It is used when an uncommon trap happens.  Returns true
    // if this thread changed the state of the nmethod or false if
    // another thread performed the transition.
    bool  make_not_entrant() { return make_not_entrant_or_zombie(not_entrant); }
    //...
    

    Just as a starting place.

提交回复
热议问题