mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 21:48:35 +01:00
kernel/socket: Allow the network stack to be unloaded on KDEBUG kernels.
This includes nightly builds; but at least we keep the efficiency gain on release builds.
This commit is contained in:
parent
6b99b20692
commit
d12b3a0e1d
@ -81,7 +81,8 @@ put_stack_interface_module()
|
||||
if (atomic_add(&sStackInterfaceConsumers, -1) != 1)
|
||||
return;
|
||||
|
||||
#if 0 /* Just leave the stack loaded, for now. */
|
||||
// Keep the stack loaded on non-KDEBUG kernels.
|
||||
#if KDEBUG
|
||||
WriteLocker _(sLock);
|
||||
if (atomic_get(&sStackInterfaceConsumers) > 0)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user