Fix for slambench - parallelCode
@@ -235,7 +235,11 @@ public class OCLCompiler {
try (Scope s0 = Debug.scope("GraalCompiler", r.graph, r.providers.getCodeCache()); DebugCloseable a = CompilerTimer.start()) {
emitFrontEnd(r.providers, r.backend, r.installedCodeOwner, r.args, r.meta, r.graph, r.graphBuilderSuite, r.optimisticOpts, r.profilingInfo, r.suites, r.isKernel, r.buildGraph,
r.batchThreads);
- emitBackEnd(r.graph, null, r.installedCodeOwner, r.backend, r.compilationResult, r.factory, null, r.lirSuites, r.isKernel, r.meta.isParallel());
+ boolean isParallel = false;
+ if (r.meta != null && r.meta.isParallel()) {
+ isParallel = true;
+ }
+ emitBackEnd(r.graph, null, r.installedCodeOwner, r.backend, r.compilationResult, r.factory, null, r.lirSuites, r.isKernel, isParallel);
} catch (Throwable e) {
throw Debug.handle(e);
}
