Skip to content

Commit 81b6d40

Browse files
author
Nicolas Laurent
committed
make stronger check of assumption
1 parent 8de2a42 commit 81b6d40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/truffleruby/core/rope/ConcatRope.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ public ConcatState getState() {
115115
}
116116

117117
CompilerDirectives.transferToInterpreterAndInvalidate();
118-
assert this.bytes != null;
118+
if (this.bytes != null) {
119+
throw CompilerDirectives
120+
.shouldNotReachHere("our assumptions about reordering and memory barriers seem incorrect");
121+
}
119122
return new ConcatState(null, null, this.bytes);
120123
}
121124

0 commit comments

Comments
 (0)