From fd6a393d67fbcd2c532d018c616dfb3badfa9881 Mon Sep 17 00:00:00 2001 From: "roman.padenkov" <roman.padenkov@demlabs.net> Date: Wed, 18 Sep 2024 15:53:08 +0700 Subject: [PATCH] ... --- modules/chain/dap_chain_cell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/chain/dap_chain_cell.c b/modules/chain/dap_chain_cell.c index 502e3740e2..c284bd4117 100644 --- a/modules/chain/dap_chain_cell.c +++ b/modules/chain/dap_chain_cell.c @@ -184,8 +184,10 @@ DAP_STATIC_INLINE int s_cell_map_new_volume(dap_chain_cell_t *a_cell, size_t a_f a_cell->map_pos = a_cell->map + l_offset; a_cell->map_range_bounds = dap_list_append(a_cell->map_range_bounds, a_cell->map); a_cell->map_range_bounds = dap_list_append(a_cell->map_range_bounds, a_cell->map_end = a_cell->map + l_map_size); +#ifndef DAP_OS_WINDOWS if (a_load) madvise(a_cell->map, l_map_size, MADV_SEQUENTIAL); +#endif return 0; } -- GitLab