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

call System.gc in R gc

parent 05b07256
Branches
No related tags found
No related merge requests found
......@@ -40,9 +40,7 @@ public abstract class Gc extends RBuiltinNode {
@SuppressWarnings("unused")
@Specialization
protected RDoubleVector gc(RAbstractLogicalVector verbose, RAbstractLogicalVector reset) {
// manually triggering gc in Java is typically not a terribly good idea so we don't do it
// here at all
System.gc();
// TODO: somehow produce the (semi?) correct values
double[] data = new double[14];
Arrays.fill(data, RRuntime.DOUBLE_NA);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment