packagefs: Add a fallback buffer for reading heaps in low-memory conditions.
Otherwise we might fail with B_NO_MEMORY, or wait for long periods of time, which we don't want to do in such a critical routine. Should improve system responsiveness (or even prevent application crashes) under high memory pressure.
This commit is contained in:
@@ -100,6 +100,7 @@ public:
|
||||
static const size_t kChunkSize = 64 * 1024;
|
||||
#if defined(_KERNEL_MODE)
|
||||
static void* sQuadChunkCache;
|
||||
static void* sQuadChunkFallbackBuffer;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user