diff --git a/modules/chain/dap_chain_cell.c b/modules/chain/dap_chain_cell.c index 502e3740e2df2e052ead4d82797acea10e7f029c..c284bd4117c2950afde3744360d7f5bc7da16105 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; }