# HG changeset patch # User Doug Simon # Date 1379975381 -7200 # Node ID 095325ccbf9ab4ce1abe2587e137d26afd101ec6 # Parent 7e7edb86fb4333784f086f2373b287340b9596a8 removed dumping overhead during inlining when dumping is not active diff -r 7e7edb86fb43 -r 095325ccbf9a graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java Mon Sep 23 14:36:00 2013 -0700 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java Tue Sep 24 00:29:41 2013 +0200 @@ -637,10 +637,15 @@ } } + private static final Object[] NO_CONTEXT = {}; + /** - * Gets the call hierarchy of this inling from outer most call to inner most callee. + * Gets the call hierarchy of this inlining from outer most call to inner most callee. */ public Object[] inliningContext() { + if (!Debug.isDumpEnabled()) { + return NO_CONTEXT; + } Object[] result = new Object[graphQueue.size()]; int i = 0; for (GraphInfo g : graphQueue) {