Skip to content

Commit f7d1984

Browse files
authored
注释错误,此处的场景是zone满了,不是空了
1 parent 3baad47 commit f7d1984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ void *rt_malloc(rt_size_t size)
540540
{
541541
RT_ASSERT(z->z_nfree > 0);
542542

543-
/* Remove us from the zone_array[] when we become empty */
543+
/* Remove us from the zone_array[] when we become full */
544544
if (--z->z_nfree == 0)
545545
{
546546
zone_array[zi] = z->z_next;

0 commit comments

Comments
 (0)