Skip to content
Snippets Groups Projects
Commit de9b370b authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Fix MEMORY_MANAGER_VICTIM_PERCENTAGE

The calculation was previously done using integers, this lead to
MEMORY_MANAGER_VICTIM_PERCENTAGE to become 0.
parent 31129496
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,8 @@ const bool CONTEXT_MANAGER_WITH_MEMORY_MANAGER =
#endif
;
constexpr float MEMORY_MANAGER_VICTIM_PERCENTAGE = EMPER_MEMORY_MANAGER_VICTIM_PERCENTAGE / 100;
constexpr float MEMORY_MANAGER_VICTIM_PERCENTAGE =
static_cast<float>(EMPER_MEMORY_MANAGER_VICTIM_PERCENTAGE) / 100;
static_assert(MEMORY_MANAGER_VICTIM_PERCENTAGE >= 0 && MEMORY_MANAGER_VICTIM_PERCENTAGE <= 1);
const size_t ASSUME_PAGE_SIZE = EMPER_ASSUME_PAGE_SIZE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment