Merge "Add System.runFinalization() call" am: 8df5d94b98
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1760810 Change-Id: I867df303b8da1b9748e5a775dd8bf4a1b910c434
This commit is contained in:
@@ -452,6 +452,7 @@ public final class SystemServer {
|
|||||||
if (maxFd > enableThreshold) {
|
if (maxFd > enableThreshold) {
|
||||||
// Do a manual GC to clean up fds that are hanging around as garbage.
|
// Do a manual GC to clean up fds that are hanging around as garbage.
|
||||||
System.gc();
|
System.gc();
|
||||||
|
System.runFinalization();
|
||||||
maxFd = getMaxFd();
|
maxFd = getMaxFd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user