Skip to content

Commit fa2e2a5

Browse files
committed
[GR-2798] Fix infinite inlining due to NACheck.create on the fast-path.
PullRequest: fastr/1992
2 parents c04b360 + 083fd4f commit fa2e2a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/SpecialAttributesFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,7 @@ protected Object getVectorTsp(RAbstractContainer x,
14011401
public abstract static class SetCommentAttributeNode extends SetSpecialAttributeNode {
14021402

14031403
private final ConditionProfile nullCommentProfile = ConditionProfile.createBinaryProfile();
1404+
private final NACheck naCheck = NACheck.create();
14041405

14051406
@Child private CastToVectorNode castVector;
14061407

@@ -1427,7 +1428,6 @@ public void setComment(RAttributable x, Object value) {
14271428
comment = castVector.doCast(value);
14281429
} else if (value instanceof RAbstractStringVector) {
14291430
RAbstractStringVector str = (RAbstractStringVector) value;
1430-
NACheck naCheck = NACheck.create();
14311431
naCheck.enable(str);
14321432
for (int j = str.getLength() - 1; j >= 0; j--) {
14331433
if (!naCheck.check(str.getDataAt(j))) {

0 commit comments

Comments
 (0)