From 4d79a76867b874d3093d44c78a772df83b53ee3c Mon Sep 17 00:00:00 2001 From: Filip Jeremic Date: Wed, 25 Oct 2017 17:59:16 -0400 Subject: [PATCH] Temporarily disable ReduceSynchronizedFieldLoad Disable ReduceSynchronizedFieldLoad until internal bugs discovered by asserts triggered are resolved. Signed-off-by: Filip Jeremic --- .../trj9/z/codegen/ReduceSynchronizedFieldLoad.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/runtime/tr.source/trj9/z/codegen/ReduceSynchronizedFieldLoad.cpp b/runtime/tr.source/trj9/z/codegen/ReduceSynchronizedFieldLoad.cpp index fe9ba97b631..f31a25e6471 100644 --- a/runtime/tr.source/trj9/z/codegen/ReduceSynchronizedFieldLoad.cpp +++ b/runtime/tr.source/trj9/z/codegen/ReduceSynchronizedFieldLoad.cpp @@ -263,9 +263,14 @@ ReduceSynchronizedFieldLoad::perform() { if (!cg->comp()->getOption(TR_DisableSynchronizedFieldLoad)) { - traceMsg(cg->comp(), "Performing ReduceSynchronizedFieldLoad\n"); + static const bool enableReduceSynchronizedFieldLoad = feGetEnv("TR_EnableReduceSynchronizedFieldLoad") != NULL; - transformed = performOnTreeTops(cg->comp()->getStartTree(), NULL); + if (enableReduceSynchronizedFieldLoad) + { + traceMsg(cg->comp(), "Performing ReduceSynchronizedFieldLoad\n"); + + transformed = performOnTreeTops(cg->comp()->getStartTree(), NULL); + } } }