stokito / IdeaJol

Intellij plugin that shows an object layout in memory to help optimize it. Uses OpenJDK JOL tool
https://plugins.jetbrains.com/plugin/10953-java-object-layout
Apache License 2.0
141 stars 9 forks source link

Explanation For Hotspot Options #41

Closed Desoroxxx closed 1 month ago

Desoroxxx commented 1 year ago

image

There are a lot of options, and I couldn't find an answer on what some of it means on the internet.

What is >= 8 or >= 15 I would guess that this would be the Java version but that is not clear since there is no J or Java (Could be entirely wrong).

What is COOPS and CCPS and 16-byte align?

And for Lilliput I could find an answer online and it is remarkably interesting and makes me excited for the future of Java.

Hope you can help me, it would be interesting to add a link to your answer in the plugin somewhere even.

stokito commented 1 year ago

Yeah, I thinked to add and explanation and also to make a video. In short just leave default setting which is COPS with 8 byte align. Others are just for researchers.

In short COPS is when 32 bit pointers (4 bytes) are used on 64 bit CPUs.

The Liliput is an OpenJDK project to get rid off object headers but it's in early stage.

stokito commented 1 year ago

For all questions see Alexey Shipilev talk In the readme here it must be a link as I remember

stokito commented 1 month ago

I added a tooltip and a separate reame section. Also added a link to documentation and videos