mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
kernel/vm: Add some more information to the commitment <= size check.
May help with diagnosing #19155.
This commit is contained in:
parent
87a66be550
commit
bc89edc3c3
@ -1090,7 +1090,11 @@ VMCache::SetMinimalCommitment(off_t commitment, int priority)
|
||||
// If we don't have enough committed space to cover through to the new end
|
||||
// of the area...
|
||||
if (committed_size < commitment) {
|
||||
ASSERT(commitment <= ROUNDUP(virtual_end - virtual_base, B_PAGE_SIZE));
|
||||
#if KDEBUG
|
||||
const off_t size = ROUNDUP(virtual_end - virtual_base, B_PAGE_SIZE);
|
||||
ASSERT_PRINT(commitment <= size, "cache %p, commitment %" B_PRIdOFF ", size %" B_PRIdOFF,
|
||||
this, commitment, size);
|
||||
#endif
|
||||
|
||||
// try to commit more memory
|
||||
status = Commit(commitment, priority);
|
||||
|
Loading…
Reference in New Issue
Block a user