Skip to content

Commit

Permalink
Fix wrong multi-page condition (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenzer authored Aug 23, 2024
1 parent 1d096f3 commit 1aaf9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/mallocMC/creationPolicies/Scatter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ namespace mallocMC
mem = (void*) counter;
}

if(chunksize < pagesize)
if(chunksize <= pagesize)
deallocChunked(acc, mem, page, chunksize);
else
deallocPageBased(acc, mem, page, chunksize);
Expand Down

0 comments on commit 1aaf9de

Please sign in to comment.