VMKernelAddressSpace: Disable the object depot for the RangesObjectCache.
We allocate/free ranges with the write lock held, so the depot is just a waste, and actually in low-memory conditions hurts (if we need a Range and there's none in the cache but there were in the depots, a scenario I saw when trying to boot with a DEBUG=1 kernel on my laptop.) (cherry picked from commit ad189ca258d42e68f493c22bb3ce5f904e1589bc) Change-Id: Id4af983a8b1337f8e90640218fe63402543355f8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/11322 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
bc55e4974a
commit
0178ddbc88
@@ -92,7 +92,7 @@ VMKernelAddressSpace::InitObject()
|
||||
return B_NO_MEMORY;
|
||||
|
||||
fRangesObjectCache = create_object_cache("kernel address ranges",
|
||||
sizeof(Range), 0);
|
||||
sizeof(Range), CACHE_NO_DEPOT);
|
||||
if (fRangesObjectCache == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user