Boundary garbage collect

This commit is contained in:
M66B 2021-03-04 22:03:06 +01:00
parent 91def72f0a
commit be68c263ad
1 changed files with 6 additions and 0 deletions

View File

@ -156,6 +156,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
return;
}
Runtime.getRuntime().gc();
int free = Log.getFreeMemMb();
Map<String, String> crumb = new HashMap<>();
crumb.put("free", Integer.toString(free));
@ -201,6 +203,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
}
});
} finally {
Runtime.getRuntime().gc();
crumb.put("free", Integer.toString(Log.getFreeMemMb()));
Log.breadcrumb("Boundary done", crumb);
@ -647,6 +651,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
iservice = null;
ifolder = null;
imessages = null;
Runtime.getRuntime().gc();
}
}