--- a/src/hotspot/share/runtime/deoptimization.cpp Thu Oct 17 13:34:06 2019 +0800
+++ b/src/hotspot/share/runtime/deoptimization.cpp Wed Oct 16 17:03:40 2019 +0200
@@ -295,7 +295,7 @@
// Reallocate the non-escaping objects and restore their fields. Then
// relock objects if synchronization on them was eliminated.
- if (jvmci_enabled || ((DoEscapeAnalysis || EliminateNestedLocks) && EliminateAllocations)) {
+ if (jvmci_enabled || (DoEscapeAnalysis && EliminateAllocations)) {
realloc_failures = eliminate_allocations(thread, exec_mode, cm, deoptee, map, chunk);
}
#endif // COMPILER2_OR_JVMCI