<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 100: Eclipse's use of rt.jar makes the workload jvm-specific.</title><link>https://sourceforge.net/p/dacapobench/bugs/100/</link><description>Recent changes to 100: Eclipse's use of rt.jar makes the workload jvm-specific.</description><atom:link href="https://sourceforge.net/p/dacapobench/bugs/100/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 07 Apr 2017 01:18:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dacapobench/bugs/100/feed.rss" rel="self" type="application/rss+xml"/><item><title>#100 Eclipse's use of rt.jar makes the workload jvm-specific.</title><link>https://sourceforge.net/p/dacapobench/bugs/100/?limit=25#84fb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In case someone else comes upon this and is in dire need of making it work, I wanted to post this here...&lt;/p&gt;
&lt;p&gt;I made a javaagent that rewrites the relevant parts of the eclipse code that look up the boot path. &lt;a href="https://github.com/jon-bell/dacapo-eclipse-hacker" rel="nofollow"&gt;https://github.com/jon-bell/dacapo-eclipse-hacker&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan Bell</dc:creator><pubDate>Fri, 07 Apr 2017 01:18:53 -0000</pubDate><guid>https://sourceforge.netd7660d5f664d4ebf6f6df5e0e231db3ef6bec7de</guid></item><item><title>Eclipse's use of rt.jar makes the workload jvm-specific.</title><link>https://sourceforge.net/p/dacapobench/bugs/100/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;From Jon Bell:&lt;/p&gt;
&lt;p&gt;What I meant was that it seems to me that the amount of work that’s done in the benchmark shouldn’t scale with the JVM that is being evaluated - it should remain constant regardless which JVM is being used to evaluate it, and the time needed to complete the benchmark should only vary with the JVM’s implementation of the optimizer, compiler, gc, class files, etc. However, if I have a JVM that has a ton of extra classes included in rt.jar, I don’t think that it should make the dacapo eclipse benchmark run slower - but this is the case, because the benchmark runs its tasks with regard to the JVM used to start it (index, search, etc.).&lt;/p&gt;
&lt;p&gt;I think that someone else tried to think this one through - there is already a flag “-Declipse.java.home” that can be used to specify the JVM that the eclipse benchmark should use for compiling code against (but this doesn’t also apply to searching and indexing — the result is that both the JVM specified with -Declipse.java.home and the boot jvm are put on the class path internally for the projects that eclipse is compiling/searching/indexing. In my cases, I had been specifying a reference JVM, e.g. when comparing hotspot 7 and hotspot 7 w/ class file tweaks, I would specify the baseline hotspot 7 JVM with the -Declipse.java.home property, and the end result was that the benchmark took ~2x as long as it should have on the tweaked version — because it resulted in the benchmark indexing and searching over twice as large of a codebase (that is, searching and indexing both JVMs).&lt;/p&gt;
&lt;p&gt;(from the 2007 commit message introducing the flag: “- &lt;/p&gt;&lt;li&gt;The &lt;b&gt;'eclipse'&lt;/b&gt; benchmark requires a regular, Sun-like jre&lt;br/&gt;
 in order to be able to perform its build tasks (it needs to be able to compile against standard libraries such as 'rt.jar'). Some JVMs do not comply with eclipse's expectations. A simple work-around is to specify a jre for eclipse to compile against. If the&lt;br/&gt;
 jvm used to run the benchmarks does not comply with eclipse's expectations, an error message will be produced with an explanation of the suggested work around (setting -Declipse.java.home=xxx on the command line to point to an orthodox jre, whose libraries&lt;br/&gt;
 will be used). &lt;b&gt;&lt;span&gt;[Fixed in 2006-10-RC1]&lt;/span&gt;&lt;/b&gt; &lt;p&gt;”)&lt;/p&gt;&lt;/li&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Blackburn</dc:creator><pubDate>Tue, 15 Mar 2016 04:06:51 -0000</pubDate><guid>https://sourceforge.net28d3d637c611cb0ea0cbf8803bdb02e78fc3d53e</guid></item></channel></rss>