There's no reason for allocating with CACHE_DONT_SLEEP. The only thing that
would get us is that the allocations could fail when they wouldn't need to. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35242 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -709,7 +709,7 @@ allocate_data_header()
|
|||||||
atomic_add(&sAllocatedDataHeaderCount, 1);
|
atomic_add(&sAllocatedDataHeaderCount, 1);
|
||||||
atomic_add(&sEverAllocatedDataHeaderCount, 1);
|
atomic_add(&sEverAllocatedDataHeaderCount, 1);
|
||||||
#endif
|
#endif
|
||||||
return (data_header*)object_cache_alloc(sDataNodeCache, CACHE_DONT_SLEEP);
|
return (data_header*)object_cache_alloc(sDataNodeCache, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -720,8 +720,7 @@ allocate_net_buffer()
|
|||||||
atomic_add(&sAllocatedNetBufferCount, 1);
|
atomic_add(&sAllocatedNetBufferCount, 1);
|
||||||
atomic_add(&sEverAllocatedNetBufferCount, 1);
|
atomic_add(&sEverAllocatedNetBufferCount, 1);
|
||||||
#endif
|
#endif
|
||||||
return (net_buffer_private*)object_cache_alloc(sNetBufferCache,
|
return (net_buffer_private*)object_cache_alloc(sNetBufferCache, 0);
|
||||||
CACHE_DONT_SLEEP);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user