<div><div><div dir="auto">Hi Ofir,</div></div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 21 Mar 2020 at 10:19 pm, Ofir Gordon <<a href="mailto:ofirg6@gmail.com" target="_blank">ofirg6@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="rtl"><div dir="ltr">Hello,</div><div dir="ltr">I hope this is the right place to ask this question,</div><div dir="ltr"><br></div><div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">I built the GraalVM jvm code from the project repository, using the <a href="https://urldefense.com/v3/__https://github.com/oracle/graal/issues/588__;!!GqivPVa7Brio!ICgxEm8dO9IQVeG1kx6xihrh_Bcd1nsPfznVOtEwAXHatr9cKtppmSFbYNJs7PXELADkow$" rel="nofollow noreferrer" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-variant-numeric:inherit;font-variant-alternates:inherit;font-variant-east-asian:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;box-sizing:inherit" target="_blank">following instructions</a>. I think it completed successfully (didn't see any error messages), and it created a new folder graal\vm\mxbuild with what seems to be the compilation product.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">My question is, how do I use the compiled JVM to run a java program? usually I would expect some java execution file, but I can't find any.</p></div></div></blockquote><div dir="auto">If you ran <span style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;background-color:rgba(27,31,35,0.0470588)">mx --env ce build</span> to build it, <span style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;background-color:rgba(27,31,35,0.0470588)">mx --env ce graalvm-home</span> should print the path to your custom built GraalVM home. This should contain the usual bin/ directory with the java binary you are looking for.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="rtl"><div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)"></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">My goal is to eventually change the jvm code in order to test the behavior of the GC, so if there is a differnt way to do it with the graalvm source code I'll appreciate your instructions.</p></div></div></blockquote><div dir="auto">The JVM has lots of GC flags. But if that's not enough and you want to change the actual implementation of one of the GCs, I think you'd need to build a custom JVMCI-enabled OpenJDK (see [1]) with your patches and use that to build a GraalVM.</div><div dir="auto"><br></div><div dir="auto"><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Hope this helps!</div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Fabio</div></div><div dir="auto"><br></div><div dir="auto"><div>[1] <a href="https://urldefense.com/v3/__https://github.com/graalvm/graal-jvmci-8__;!!GqivPVa7Brio!Icfnj_-jZu3r6DH5hEX8ZCB99Jt213vP5jYJiNujYeYTkSqP9pNPBlLodx_YqYhaCyCDJA$">https://github.com/graalvm/graal-jvmci-8</a></div><br></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="rtl"><div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">Thanks in advance,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)">Ofir</p></div></div>
_______________________________________________<br>
GraalVM-Dev mailing list<br>
<a href="mailto:GraalVM-Dev@oss.oracle.com" target="_blank">GraalVM-Dev@oss.oracle.com</a><br>
<a href="https://oss.oracle.com/mailman/listinfo/graalvm-dev" rel="noreferrer" target="_blank">https://oss.oracle.com/mailman/listinfo/graalvm-dev</a></blockquote></div></div>
</div>