What is the current preferred way of unregistering M3 models from the Registry?
In my project I'm using Rascal to analyse ~100 large java programs and my JVM is slowly running out of memory. I found the unregisterProject method in older versions of the Registry and tried using this code but I don't think it's working correctly.
public void unregisterProject(loc project, M3 model) {
rel[str scheme, loc name, loc src] perScheme
= {<name.scheme, name, src> | <name, src> <- model.declarations};
for (str scheme <- perScheme<scheme>) {
unregisterLocations(scheme, project.authority);
}
}
My current workaround is to throw a large amount of memory at the problem.