Skip to content
Snippets Groups Projects
Commit 4a3ccac8 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

changed to elide the large/infinite range unless there's no other space to fill

parent 19a64b7a
No related branches found
No related tags found
1 merge request!11Make sure that Zipr does not produce segments with RWX permissions.
Pipeline #
......@@ -270,7 +270,7 @@ Range_t ZiprMemorySpace_t::GetFreeRange(int size)
Range_t r=*it;
if(r.GetEnd()==(RangeAddress_t)-1)
big_range=r;
if(r.GetEnd() - r.GetStart() >= (unsigned) size)
else if(r.GetEnd() - r.GetStart() >= (unsigned) size)
v.push_back(r);
// that's enough randomization
......
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