注释错误,此处的场景是zone满了,不是空了
This commit is contained in:
parent
3baad47752
commit
f7d198463e
@ -540,7 +540,7 @@ void *rt_malloc(rt_size_t size)
|
|||||||
{
|
{
|
||||||
RT_ASSERT(z->z_nfree > 0);
|
RT_ASSERT(z->z_nfree > 0);
|
||||||
|
|
||||||
/* Remove us from the zone_array[] when we become empty */
|
/* Remove us from the zone_array[] when we become full */
|
||||||
if (--z->z_nfree == 0)
|
if (--z->z_nfree == 0)
|
||||||
{
|
{
|
||||||
zone_array[zi] = z->z_next;
|
zone_array[zi] = z->z_next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user