Trying to implement fixnums

Stepan Koltsov yozh at mx1.ru
Mon Oct 24 16:31:40 PDT 2011


Hi,

I'm trying to implement fixnums (
http://blogs.oracle.com/jrose/entry/fixnums_in_the_vm ).

Task seems to be relatively easy. However, I don't know OpenJDK
internals at all, so I'm asking for your help.

First thing I'm trying to do is to override Integer.valueOf on 64-bit JVM.

So, Integer.valueOf is already an intrinsic.

I created class MakeIntFixnumNode extends Node, and I added code to
library_call.cpp that converts Integer.valueOf call to
MakeIntFixnumNode.

And that's all. I stuck :)

Have any suggestions? Am I moving in the right direction? Which parts
of code should I patch?

Another question: are there any documents, blogs, articles describing
hotspot internals?

-- 
Stepan


More information about the mlvm-dev mailing list