Skip to content
Snippets Groups Projects
Commit f2503533 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

clear last.warning during base package loading

parent 37a6521d
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ import com.oracle.truffle.api.CompilerAsserts;
import com.oracle.truffle.api.RootCallTarget;
import com.oracle.truffle.api.Truffle;
import com.oracle.truffle.api.frame.FrameDescriptor;
import com.oracle.truffle.api.frame.FrameSlot;
import com.oracle.truffle.api.frame.MaterializedFrame;
import com.oracle.truffle.api.source.Source;
import com.oracle.truffle.r.nodes.builtin.base.BasePackage;
......@@ -116,6 +117,11 @@ public final class RBuiltinPackages implements RBuiltinLookup {
} catch (ParseException e) {
throw new RInternalError(e, "error while parsing base source from %s", baseSource.getName());
}
// forcibly clear last.warnings during startup:
FrameSlot slot = baseFrame.getFrameDescriptor().findFrameSlot("last.warning");
if (slot != null) {
FrameSlotChangeMonitor.setObject(baseFrame, slot, null);
}
} finally {
RContext.getInstance().setLoadingBase(false);
}
......
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