From db3cc819a40b2b1cb8f898a67d41ca2f7b7ef2ce Mon Sep 17 00:00:00 2001 From: liangcheng-yu Date: Sat, 8 Apr 2023 05:35:40 +0000 Subject: [PATCH] Fix assert in alloc_from_class --- src/util/huge_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/huge_alloc.h b/src/util/huge_alloc.h index 4afd8496..10d2ead4 100644 --- a/src/util/huge_alloc.h +++ b/src/util/huge_alloc.h @@ -203,7 +203,7 @@ class HugeAlloc { // Use the Buffers at the back to improve locality Buffer buffer = freelist_[size_class].back(); - assert(buffer.class_size_ = class_max_size(size_class)); + assert(buffer.class_size_ == class_max_size(size_class)); freelist_[size_class].pop_back(); stats_.user_alloc_tot_ += buffer.class_size_;