JVM (part 2) ~ Inside of a JVM

Chapter 2

Shanira Perera
2 min readJul 17, 2022

Context of JVM

JVM includes 3 of components. it loading, storing and executing the data. in that loading process it use class loader to load the class files to the jvm. and the memory area use to store the data and finally execution engine use to execute it. ok now we take one by one and see how it works.

3 Parts of JVM

  1. Class Loader
  2. Memory Area
  3. Execution Engine

Memory Area

Memory area build with 5 parts. Method area, Heap area, Stack, Pc registers and Native method area. ok now we take method area, it is that area which accept the data from class loader and it provides object data to the Heap area. method area and the heap area create an only one per jvm instance.

Image by Author via Unsplash

Every methods, informations, variables are holding at stack it creates one frame for one method. methods need informations to proceed, so pc registers and native method area helps to hold the informations that methods needed. every threads informations are in the pc registers but some thread’s methods use the native method informations. that kind of threads informations are not in the pc registers.

Image by Author via geeksforgeeks

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Shanira Perera
Shanira Perera

Written by Shanira Perera

Hello, I’m Shanira, welcome to the world of technology. I am an Associate software engineer at virtusa. So let’s begin!

No responses yet

Write a response