boolean (int pagesRemainedForReclaim, int pagesDemandForecast) { boolean memoryBudgetIsAboutToExhaust = memoryManager.nativeBytesUsed() > 4 * memoryManager.nativeCapacityBytes() / 5; boolean pagesPileIsAboutToExhaust = pagesDemandForecast > pagesRemainedForReclaim; return pagesPileIsAboutToExhaust && memoryBudgetIsAboutToExhaust; }