mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
Kernel: Remove krealloc()
This was only used by a single class (AK::ByteBuffer) in the kernel and not in an OOM-safe way. Now that ByteBuffer no longer uses it, there's no need for the kernel heap to burden itself with supporting this.
This commit is contained in:
parent
966880eb45
commit
25e850ebb1
4 changed files with 0 additions and 48 deletions
|
@ -298,13 +298,6 @@ void kfree(void* ptr)
|
|||
--g_nested_kfree_calls;
|
||||
}
|
||||
|
||||
void* krealloc(void* ptr, size_t new_size)
|
||||
{
|
||||
kmalloc_verify_nospinlock_held();
|
||||
ScopedSpinLock lock(s_lock);
|
||||
return g_kmalloc_global->m_heap.reallocate(ptr, new_size);
|
||||
}
|
||||
|
||||
size_t kmalloc_good_size(size_t size)
|
||||
{
|
||||
return size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue