Grzegorz Mirek

Client, Server and Tiered Compilation

Client and Server Compilers There are two basic types of Just-In-Time Java compilers: Client and Server. Traditionally, the Client and the Server compilers are called C1 and C2 respectively.   The main difference between the Client and the Server compilers is the aggressiveness in a way they compile code. The Client compiler is optimised to…

Read more...

Escape Analysis

Escape Analysis (EA) is another very important technique which Just-In-Time Java compiler can use to analyze the scope of a new object and decide whether it might not be allocated on Java heap space.   Many resources available on the internet say that EA allows objects to be allocated on the method stack. While technically…

Read more...

When Short Methods Pay Off: JIT Inlining

Among all Just-In-Time Java compiler optimizations, inlining methods is one of the most powerful one. When we usually write code following good object-oriented practices, we end up having lots of small objects with well-encapsulated attributes – most of the them accessible via getters. There is an overhead of making additional calls and increasing a callstack….

Read more...