summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-05-21 23:06:11 +0800
committerGitHub <[email protected]>2021-05-21 23:06:11 +0800
commit19de22f485c2adc07ec90b92753bc53d7a7a9487 (patch)
tree65e0df3bd6b6473bdafaafb5fb83cc1977399d14 /src
parent81c7bf894465fa875792ca468e75b93a3d0dbe86 (diff)
parentf7d198463e9bff5554835a4ee86b9e28a0190ede (diff)
Merge pull request #4695 from wfwzhxd/wfwzhxd-patch-1
注释错误,此处的场景是zone满了,不是空了
Diffstat (limited to 'src')
-rw-r--r--src/slab.c2
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;