mirror of
https://github.com/RGBCube/serenity
synced 2025-10-26 18:02:06 +00:00
Ideally we would never allocate under a spinlock, as it has many performance and potentially functionality (deadlock) pitfalls. We violate that rule in many places today, but we need a tool to track them all down and fix them. This change introduces a new macro option named `KMALLOC_VERIFY_NO_SPINLOCK_HELD` which can catch these situations at runtime via an assert. |
||
|---|---|---|
| .. | ||
| Heap.h | ||
| kmalloc.cpp | ||
| kmalloc.h | ||
| SlabAllocator.cpp | ||
| SlabAllocator.h | ||