From f7d198463e9bff5554835a4ee86b9e28a0190ede Mon Sep 17 00:00:00 2001 From: Hunter Date: Sat, 15 May 2021 21:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E6=AD=A4=E5=A4=84=E7=9A=84=E5=9C=BA=E6=99=AF=E6=98=AFzone?= =?UTF-8?q?=E6=BB=A1=E4=BA=86=EF=BC=8C=E4=B8=8D=E6=98=AF=E7=A9=BA=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;