How to add a new intrinsic

Jaromir Hamala jaromir.hamala at gmail.com
Sun Nov 9 18:53:00 UTC 2014


Hi,

I've been playing with HotSpot and as learning exercise I've tried to add a
new intrinsic - the pause instruction on x86 CPUs. I have very limited
knowledge of HotSpot codebase and my knowledge of C++ is rusty at least. I
think I've got it working for interpreted mode, but I'm not very sure :) At
least it's not crashing JVM and I'm not getting UnsatisfiedLinkError either
- on x86 obviously.

I have generated webrev with my changes:
https://dl.dropboxusercontent.com/u/3201393/pause-webrev/index.html in
HotSpot.

I do not have ambitions to include it in OpenJDK, but I greatly appreciate
any feedback / help. I guess the next step for me is to include C1 and
eventually C2 support - again - any pointers are very highly appreciated!

Cheers,
Jaromir

-- 
“Perfection is achieved, not when there is nothing more to add, but when
there is nothing left to take away.”
Antoine de Saint Exupéry


More information about the hotspot-dev mailing list