Category: Java Application Performance and Memory Management
-
[Java Application Performance and Memory Management] Chapter 2- Just In Time Compilation and the Code Cache (2)
C1 compiler and C2 compiler There are two compilers inside the JVM JIT compilers. C1 compiler does level 1~3 compilation, and C2 compiler does the level 4 compilation This level is called as ‘compilation tier‘ The higher the level is, the more optimized the code would be. C2 compiler optimizes…
-
[Java Application Performance and Memory Management] Chapter 2- Just In Time Compilation and the Code Cache (1)
JVM basically runs the compiled Java byte codes(e.g. Main.class). In the early Java system, JVM was running each line of code line by line when it’s needed. Reading line by line of the bytecodes and interpreting it into the machine-readable language was definitely making Java slower than languages like C.…
-
Difference between String literal and String object
There are two different ways to express String in Java, first one is to use String literal like and the other one is to use String object like String literal vs String object Creating a String object with new(), it always creates a new object in heap memory where all…
