Skip to content

Commit b678079

Browse files
committed
Added TruffleBoundary for REAL()
1 parent 799641c commit b678079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/common/JavaUpCallsRFFIImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ public void SET_NAMED_FASTR(Object x, int v) {
678678
RShareable r = (RShareable) x;
679679
int actual = getNamed(r);
680680
if (v < actual) {
681-
RError.warning(RError.NO_CALLER, RError.Message.GENERIC, "Native code attempted to decrease the reference count. This operation is ignored.");
681+
// RError.warning(RError.NO_CALLER, RError.Message.GENERIC, "Native code attempted to decrease the reference count. This operation is ignored.");
682682
}
683683
if (v == 2) {
684684
// we play it safe: if the caller wants this instance to be shared, they may expect
@@ -2412,6 +2412,7 @@ public Object LOGICAL(Object x) {
24122412
}
24132413

24142414
@Override
2415+
@TruffleBoundary
24152416
public Object REAL(Object x) {
24162417
if ((x instanceof RAbstractStringVector) || (x instanceof RAbstractListBaseVector)) {
24172418
RFFIUtils.unimplemented("REAL is being called for type " + Utils.getTypeName(x));

0 commit comments

Comments
 (0)