Skip to content

Commit 29ad4ce

Browse files
committed
RunTwiceBranchProfile should be NodeCloneable
* So it is copied on split and not shared between splits.
1 parent 713d643 commit 29ad4ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/truffleruby/utils/RunTwiceBranchProfile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
import com.oracle.truffle.api.CompilerDirectives;
1313
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
14+
import com.oracle.truffle.api.nodes.NodeCloneable;
1415

15-
public final class RunTwiceBranchProfile {
16+
public final class RunTwiceBranchProfile extends NodeCloneable {
1617

1718
private enum ExecuteCounter {
1819
NEVER,

0 commit comments

Comments
 (0)