Skip to content
Snippets Groups Projects
Commit e639912f authored by Mick Jordan's avatar Mick Jordan
Browse files

add TruffleBoundary to Download

parent 9d5ff18e
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.r.nodes.builtin.CastBuilder;
import com.oracle.truffle.r.nodes.builtin.CastBuilder.Predef;
......@@ -58,6 +59,7 @@ public abstract class Download extends RExternalBuiltinNode.Arg5 {
}
@Specialization
@TruffleBoundary
protected int download(String urlString, String destFile, @SuppressWarnings("unused") boolean quiet, @SuppressWarnings("unused") String mode, @SuppressWarnings("unused") boolean cacheOK) {
try {
try (InputStream in = new URL(urlString).openStream()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment