* rtl/heap: optimization, while looking for a big enough block, also use blocks that are exactly large enough

git-svn-id: trunk@14420 -
This commit is contained in:
micha 2009-12-12 09:37:36 +00:00
parent a6e6e9d453
commit 347d71db10

View File

@ -951,7 +951,7 @@ begin
iter := high(iter);
while assigned(pcurr) and (iter>0) do
begin
if (pcurr^.size>size) then
if (pcurr^.size>=size) then
begin
if not assigned(pbest) or (pcurr^.size<pbest^.size) then
begin