From 1c10ad2ea85e679be667f1be28ca4f8c6e0cc540 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Tue, 17 Oct 2023 01:11:07 +0800 Subject: [PATCH] avmc_queue: Fix build error with `--enable-debug-checks` --- asteria/llds/avmc_queue.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/asteria/llds/avmc_queue.cpp b/asteria/llds/avmc_queue.cpp index cf63b75e2..2bb24d1f9 100644 --- a/asteria/llds/avmc_queue.cpp +++ b/asteria/llds/avmc_queue.cpp @@ -25,10 +25,6 @@ do_reallocate(uint32_t estor) bptr = (Header*) ::realloc((void*) this->m_bptr, estor * sizeof(Header)); if(!bptr) throw ::std::bad_alloc(); - -#ifdef ROCKET_DEBUG - ::memset((void*) this->m_bptr, 0xE6, this->m_estor * sizeof(Header)); -#endif } else { // Free the storage.