diff options
| author | Hunter <[email protected]> | 2021-05-15 21:57:01 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-15 21:57:01 +0800 |
| commit | f7d198463e9bff5554835a4ee86b9e28a0190ede (patch) | |
| tree | 6e89d184e6559cd284a7f15295d0742f79ae1b9e /src | |
| parent | 3baad47752c3199486be1d06c9459cad3ae2e294 (diff) | |
注释错误,此处的场景是zone满了,不是空了
Diffstat (limited to 'src')
| -rw-r--r-- | src/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slab.c b/src/slab.c index 12ca1a938c..114259002f 100644 --- a/src/slab.c +++ b/src/slab.c @@ -540,7 +540,7 @@ void *rt_malloc(rt_size_t size) { 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) { zone_array[zi] = z->z_next; |
