Skip to content

Commit 19de22f

Browse files
authored
Merge pull request #4695 from wfwzhxd/wfwzhxd-patch-1
注释错误,此处的场景是zone满了,不是空了
2 parents 81c7bf8 + f7d1984 commit 19de22f

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)