From bahram.yarahmadi at gmail.com Sat Jan 9 11:25:39 2016 From: bahram.yarahmadi at gmail.com (Bahram Yarahmadi) Date: Sat, 9 Jan 2016 03:25:39 -0800 Subject: How to understand the source codes Message-ID: Hello dudes I am currently involved in research project and I want to convert Java Bytecode(including Java 8 features) to LLVM IR as a first step of my research project I download jdk8u source tree and build it via command line I opened the source tree via netbeans (but I could not build the project in netbeans) I want to know the codes in order to Hack it , would you mind helping me ,Is there any well document or tutorial to know OpenJDK source tree better ? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From bahram.yarahmadi at gmail.com Sun Jan 10 10:42:44 2016 From: bahram.yarahmadi at gmail.com (Bahram Yarahmadi) Date: Sun, 10 Jan 2016 02:42:44 -0800 Subject: How to understand the source codes In-Reply-To: References: Message-ID: Is there anyone here that can tell me how I can Hack Jdk8u source code inorder to produce LLVM IR from Java 8 Bytecode ? I don't know so much about Shark code base ? Please Thanks , On Sat, Jan 9, 2016 at 3:25 AM, Bahram Yarahmadi wrote: > Hello dudes > I am currently involved in research project and I want to convert Java > Bytecode(including Java 8 features) to LLVM IR as a first step of my > research project > I download jdk8u source tree and build it via command line > I opened the source tree via netbeans (but I could not build the project > in netbeans) > > I want to know the codes in order to Hack it , > > would you mind helping me ,Is there any well document or tutorial to know > OpenJDK source tree better ? > > Thanks, > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aph at redhat.com Sun Jan 10 19:09:52 2016 From: aph at redhat.com (Andrew Haley) Date: Sun, 10 Jan 2016 19:09:52 +0000 Subject: How to understand the source codes In-Reply-To: References: Message-ID: <5692AC80.80805@redhat.com> On 10/01/16 10:42, Bahram Yarahmadi wrote: > Is there anyone here that can tell me how I can Hack Jdk8u source code > inorder to produce LLVM IR from Java 8 Bytecode ? > I don't know so much about Shark code base ? It's part of OpenJDK. It's quite an ambitious thing that you are trying to do, and requires a deep understanding of Java and virtual machines. This: VMKit: a Substrate for Managed Runtime Environments http://llvm.org/pubs/2010-03-VEE-VMKit.pdf might be of interest. Andrew. From bahram.yarahmadi at gmail.com Sat Jan 16 12:38:46 2016 From: bahram.yarahmadi at gmail.com (Bahram Yarahmadi) Date: Sat, 16 Jan 2016 16:08:46 +0330 Subject: Shark codeBase Message-ID: 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 Thanks , -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgehwolf at redhat.com Mon Jan 18 10:04:53 2016 From: sgehwolf at redhat.com (Severin Gehwolf) Date: Mon, 18 Jan 2016 11:04:53 +0100 Subject: Shark codeBase In-Reply-To: References: Message-ID: <1453111493.3343.11.camel@redhat.com> 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 From bahram.yarahmadi at gmail.com Tue Jan 19 11:03:25 2016 From: bahram.yarahmadi at gmail.com (Bahram Yarahmadi) Date: Tue, 19 Jan 2016 14:33:25 +0330 Subject: Shark codeBase In-Reply-To: <1453111493.3343.11.camel@redhat.com> References: <1453111493.3343.11.camel@redhat.com> Message-ID: Thanks for your response. I followed your guide, I tried to install libffi on my linux ubuntu and after that I run the bellow command make images CONF=linux-x86_64-normal-zeroshark-release DEBUG_BINARIES=true all But I got this Error :In file included from /home/bahram/jdk8u/hotspot/src/share/vm/opto/compile.hpp:41:0, from /home/bahram/jdk8u/hotspot/src/share/vm/ci/ciTypeFlow.cpp:38: /home/bahram/jdk8u/hotspot/src/share/vm/opto/regmask.hpp:40:39: fatal error: adfiles/adGlobals_zero.hpp: No such file or directory # include "adfiles/adGlobals_zero.hpp" ^ compilation terminated. Compiling /home/bahram/jdk8u/hotspot/src/share/vm/ci/ciUtilities.cpp Compiling /home/bahram/jdk8u/hotspot/src/share/vm/classfile/classFileError.cpp Compiling /home/bahram/jdk8u/hotspot/src/share/vm/classfile/classFileParser.cpp make[6]: *** [ciTypeFlow.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [the_vm] Error 2 make[4]: *** [productshark] Error 2 make[3]: *** [generic_buildshark] Error 2 make[2]: *** [productshark] Error 2 make[1]: *** [/home/bahram/jdk8u/build/linux-x86_64-normal-zeroshark-release/hotspot/_hotspot.timestamp] Error 2 make: *** [hotspot-only] Error 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aph at redhat.com Tue Jan 19 11:11:14 2016 From: aph at redhat.com (Andrew Haley) Date: Tue, 19 Jan 2016 11:11:14 +0000 Subject: Shark codeBase In-Reply-To: References: <1453111493.3343.11.camel@redhat.com> Message-ID: <569E19D2.7080308@redhat.com> Hi, On 19/01/16 11:03, Bahram Yarahmadi wrote: > But I got this Error :In file included from > /home/bahram/jdk8u/hotspot/src/share/vm/opto/compile.hpp:41:0, > from > /home/bahram/jdk8u/hotspot/src/share/vm/ci/ciTypeFlow.cpp:38: > /home/bahram/jdk8u/hotspot/src/share/vm/opto/regmask.hpp:40:39: fatal > error: adfiles/adGlobals_zero.hpp: No such file or directory > # include "adfiles/adGlobals_zero.hpp" It is going to be a significant task to get all this stuff built. Shark is certainly in need of some work to get it working well. It is unlikely that anyone is going to have the time to talk you through fixing any problems with the build. So please don't just post error messages: try to debug what is going wrong with the build yourself, and ask specific questions. Don't just say "How do I fix this?" If you can persuade people that you are serious and have actually dome some work, maybe they will want to help you. Firstly, have you built Zero? Did it work? Then move on to trying to get Shark built. But I hope that you have a lot of time to spend on this: getting to know such a large code base is hard, and we can't do it for you. Andrew. From hamiltcl at verizon.net Sun Jan 24 13:10:27 2016 From: hamiltcl at verizon.net (Curtis Hamilton) Date: Sun, 24 Jan 2016 08:10:27 -0500 Subject: JDK8 ZeroShark Build Message-ID: <001a01d156a8$9823ea00$c86bbe00$@verizon.net> Hello, Has anyone been successful building Shark for JDK7 or JDK8 on FreeBSD? I can build Zero VMs for both 7 and 8 on FreeBSD (PPC64). However, I've not been successful in getting a working JVM building using LLVM version 3.4.2. Attached is the log file created when "java -version" is run from the command line. Any assistance would be greatly appreciated. Regards, Curtis -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: hs_err_pid8565.log URL: