# HG changeset patch # User Jan Vrany # Date 1429549591 -3600 # Node ID 840942b96eeab16c638156f38fa9ec3e5ab6710f # Parent 6fcdf4d2c32c18d80d596cb039c912c8f1805083 Bugfix: in teardown, do not remove parser if it has not been compiled. This leads to `Smalltalk removeClass: UndefinedObject` which is not good idea. diff -r 6fcdf4d2c32c -r 840942b96eea compiler/benchmarks/PPCBenchmark.st --- a/compiler/benchmarks/PPCBenchmark.st Mon Apr 20 13:24:27 2015 +0100 +++ b/compiler/benchmarks/PPCBenchmark.st Mon Apr 20 18:06:31 2015 +0100 @@ -497,7 +497,9 @@ ! teardownJavaSyntaxCompiledC - parser class removeFromSystem. + parser notNil ifTrue:[ + parser class removeFromSystem. + ]. " size := input inject: 0 into: [:r :e | r + e size ]. Transcript crShow: 'Compiled Grammar time: ', time asString. @@ -506,7 +508,9 @@ ! teardownSmalltalkGrammarCompiledC - parser class removeFromSystem. + parser notNil ifTrue:[ + parser class removeFromSystem. + ]. " size := input inject: 0 into: [:r :e | r + e size ]. Transcript crShow: 'Compiled Grammar time: ', time asString.