From: <jik...@li...> - 2012-11-13 16:17:32
|
details: http://hg.code.sourceforge.net/p/jikesrvm/code/rev/1ec35a9ab5dd changeset: 10567:1ec35a9ab5dd user: Erik Brangs <eri...@gm...> date: Tue Nov 13 16:29:55 2012 +0100 description: Ensure that the OptTestHarness does not crash when run on builds that do not include the optimizing compiler. diffstat: rvm/src/org/jikesrvm/tools/oth/OptTestHarness.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff --git a/rvm/src/org/jikesrvm/tools/oth/OptTestHarness.java b/rvm/src/org/jikesrvm/tools/oth/OptTestHarness.java --- a/rvm/src/org/jikesrvm/tools/oth/OptTestHarness.java +++ b/rvm/src/org/jikesrvm/tools/oth/OptTestHarness.java @@ -433,7 +433,7 @@ reflectoidVector = new Vector<Method>(10); reflectMethodVector = new Vector<RVMMethod>(10); reflectMethodArgsVector = new Vector<Object[]>(10); - if (!OptimizingCompiler.isInitialized()) { + if (VM.BuildForOptCompiler && !OptimizingCompiler.isInitialized()) { OptimizingCompiler.init(options); } processOptionString(args); |