Skip to content

Commit 4261d4e

Browse files
committed
[GR-32233] Fix SVM performance regression for interpreter calls.
PullRequest: graal/9209
2 parents 98324cb + a72af4a commit 4261d4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/src/org.graalvm.compiler.truffle.runtime/src/org/graalvm/compiler/truffle/runtime/OptimizedCallTarget.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import com.oracle.truffle.api.ReplaceObserver;
5353
import com.oracle.truffle.api.RootCallTarget;
5454
import com.oracle.truffle.api.Truffle;
55+
import com.oracle.truffle.api.TruffleOptions;
5556
import com.oracle.truffle.api.TruffleSafepoint;
5657
import com.oracle.truffle.api.frame.FrameDescriptor;
5758
import com.oracle.truffle.api.frame.VirtualFrame;
@@ -557,8 +558,11 @@ private boolean interpreterCall() {
557558
* entry stub again then this leads to an inconvenient stack overflow error. In order to
558559
* avoid this we just do not return true and wait for the second execution to jump to
559560
* the optimized code. In practice the installed code should rarely be bypassed.
561+
*
562+
* This is only important for HotSpot. We can safely ignore this behavior for SVM as
563+
* there is no regular JDWP debugging supported.
560564
*/
561-
return isCompiled && !bypassedInstalledCode;
565+
return isCompiled && (TruffleOptions.AOT || !bypassedInstalledCode);
562566
}
563567
return false;
564568
}

0 commit comments

Comments
 (0)