2

Recently I learned that there's an openjdk shark project, which uses llvm to make hotspot vm more portable. Since I used to work on jdk and is interested in llvm right now, this is a match made in heaven. So first thing first, how to build openjdk shark against llvm 3.0? To be more specific, which repository in http://hg.openjdk.java.net/ should I begin with? jdk7u, jdk7u2, jdk8, or icedtea?

I prefer latest update release of jdk7 if possible. And I intend to build that in a mac os x.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
edwardw
  • 12,652
  • 3
  • 40
  • 51

1 Answers1

2

I made some progress. Here's what I did:

  • started with this repository

  • applied llvm 3.0 patch mentioned here

  • and bunch of other make file hacks

But there is a road blocker. To support JSR 292, a.k.a invoke dynamic, something called Richochet frames has been introduced into Hotspot JVM, which unfortunately hasn't been implemented in zero yet. So the building fails not only on Mac OS X but also on other platforms.

The good news is Chris Phillips from Redhat is working on it. I also learned that the most relevant mailing lists are mlvm-dev and zero-dev at openjdk.java.net, in case someone is interested in the same topic too.

edwardw
  • 12,652
  • 3
  • 40
  • 51