diff options
| author | Bernard Xiong <[email protected]> | 2021-05-21 23:06:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-21 23:06:11 +0800 |
| commit | 19de22f485c2adc07ec90b92753bc53d7a7a9487 (patch) | |
| tree | 65e0df3bd6b6473bdafaafb5fb83cc1977399d14 /src | |
| parent | 81c7bf894465fa875792ca468e75b93a3d0dbe86 (diff) | |
| parent | f7d198463e9bff5554835a4ee86b9e28a0190ede (diff) | |
Merge pull request #4695 from wfwzhxd/wfwzhxd-patch-1
注释错误,此处的场景是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; |
