Shark codeBase

Severin Gehwolf sgehwolf at redhat.com
Mon Jan 18 10:04:53 UTC 2016


Hi,

On Sat, 2016-01-16 at 16:08 +0330, Bahram Yarahmadi wrote:
> Hello guys,
> I have downloaded Jdk8u and build it via command line,
> I want to know How I can configure Shark JIT with my build process ,I
> want to change some classes  in the shark codebase 

Disclaimer: I haven't built Shark in a long time.

AFAIK, it used to work with LLVM version 3.4 as of March 2014[1]. There
has been some work being done in the openembedded world by Jens
Rehsack[2]. I think he got Shark to build with LLVM 3.5, which I
haven't tested.

The shark files live mostly in these dirs:
src/share/vm/shark/
src/cpu/zero/vm/

The configure options to build shark are along the lines of:
configure ... \
  --with-jvm-variants=zeroshark

If llvm-config isn't in your PATH you might want to set it in your
build script like this:
PATH=$PATH:/path/to/llvm/llvm-3.4-bin-install/bin

Hope this helps and good luck!

Cheers,
Severin

[1] http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/81ccf2c854c7
[2] https://github.com/rdm-dev/meta-java/tree/master/recipes-core/openjdk/patches-openjdk-8


More information about the zero-dev mailing list