Skip to content

Commit ad90fca

Browse files
committed
Sulong: Override RootNode.isInternal() to return a PE-constant value
This fixes a performance warning due to a non PE-constant default implementation of isInternal() in Truffle.
1 parent f587d7e commit ad90fca

File tree

1 file changed

+5
-0
lines changed
  • sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/intrinsics/multithreading

1 file changed

+5
-0
lines changed

sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/intrinsics/multithreading/LLVMPThreadStart.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ public static LLVMPThreadFunctionRootNode create(LLVMLanguage language, NodeFact
129129
return new LLVMPThreadFunctionRootNode(language, descriptor, functionSlot, argSlot, nodeFactory);
130130
}
131131

132+
@Override
133+
public boolean isInternal() {
134+
return false;
135+
}
136+
132137
@Override
133138
public Object execute(VirtualFrame frame) {
134139
if (ctxRef == null) {

0 commit comments

Comments
 (0)