[Jvm] Timestamp compile_id COMPILE SKIPPED: reason appears in the jvm compilation log

Insert picture description here

1 Overview

Background reference: [jvm] java jstat command

If the compilation log includes a line similar to the following:

timestamp compile_id COMPILE SKIPPED: reason

This line of information (including the text COMPILE SKIPPED) indicates that there is an error in the given method of compiling. There may be two reasons for this error.

1. The code cache is full

The ReservedCodeCache flag is needed to increase the size of the code cache.

2. Load classes while compiling

Modifications occur when the class is compiled. The JVM will be recompiled afterwards, and you can see that the method is recompiled in the log afterwards.

In all these cases (except the code cache is filled), the compilation can be tried again. If it can't, it means that the code was compiled incorrectly. Although it is usually a defect of the compiler, a common solution is to refactor the code to be simpler so that the compiler can handle it.

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/114948568
JVM
JVM