Remove unnecessary code from malloc.c. Enhance pcache1.c so that is tries
to reuse existing pages, rather than create new pages, when SQLite is under
memory pressure. "Memory pressure" means that SQLITE_CONFIG_PAGECACHE memory
is nearly exhausted or sqlite3_soft_heap_limit() has been reached.
FossilOrigin-Name: 51049479a8577e03cc353f71f6e13a10c8323d91
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index c44c25f..6c41315 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2503,6 +2503,7 @@
void sqlite3MemSetDefault(void);
void sqlite3BenignMallocHooks(void (*)(void), void (*)(void));
int sqlite3MemoryAlarm(void (*)(void*, sqlite3_int64, int), void*, sqlite3_int64);
+int sqlite3HeapNearlyFull(void);
/*
** On systems with ample stack space and that support alloca(), make