From 2980bf032fb939ae246d42196c86235767a90ab8 Mon Sep 17 00:00:00 2001 From: "zhuangbowei.zbw" Date: Tue, 6 Aug 2024 16:55:15 +0800 Subject: [PATCH] volatile Signed-off-by: zhuangbowei.zbw --- src/overlaybd/zfile/zfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/overlaybd/zfile/zfile.cpp b/src/overlaybd/zfile/zfile.cpp index 94470964..567e741b 100644 --- a/src/overlaybd/zfile/zfile.cpp +++ b/src/overlaybd/zfile/zfile.cpp @@ -992,7 +992,7 @@ bool load_jump_table(IFile *file, CompressionFile::HeaderTrailer *pheader_traile LOG_INFO("read overwrite header. idx_offset: `, idx_bytes: `, dict_size: `, use_dict: `", pht->index_offset, index_bytes, pht->opt.dict_size, pht->opt.use_dict); } - auto ibuf = new uint32_t[pht->index_size]; + volatile auto ibuf = new uint32_t[pht->index_size]; DEFER(delete[] ibuf); // auto ibuf = std::unique_ptr(new uint32_t[pht->index_size]); LOG_INFO(VALUE((void*) ibuf), VALUE(index_bytes));