Skip to content

Commit db2f9bf

Browse files
committed
sync: we might be in an unlocked path, so don't just unlock
With out ticket lock, we can't just try to unlock the kernel and re-lock. Instead, just drop the relock. XXX: there are more bad things
1 parent 8eb99c9 commit db2f9bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sys/kern/kern_malloc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ malloc(size_t size, int type, int flags)
169169
if (pool_debug == 2)
170170
yield();
171171
#endif
172-
if (!cold && pool_debug) {
173-
KERNEL_UNLOCK();
174-
KERNEL_LOCK();
175-
}
176172
}
177173

178174
#ifdef MALLOC_DEBUG

0 commit comments

Comments
 (0)