Thursday, 14 November 2013

Java Hotspot VM.

Java HotSpot VM has an extremely advanced justin-time (JIT) compiler, which enables Java HotSpot VM to produce very highly optimized machine code for any platform that Java HotSpot VM runs on. In this article, we will lift the curtain on an important aspect of Java HotSpot VM’s JIT compiler: the code cache. Understanding the code cache provides insight into a range of performance issues that are otherwise difficult to track down.

Lifecycle of a Java Method:

The smallest unit of new code that the Java platform will load and link into a running program is a class. This means that when a new method is being onboarded, it must go through the class-loading process (as part of the class that contains it). The class-loading process acts as a pinch point: a place where a lot of the Java platform’s security checks are concentrated. The lifecycle of a Java method, therefore, starts with the class-loading process that brings a new class into the running Java Virtual Machine (JVM).

No comments:

Post a Comment