* keep the tiny heap free blocks ordered by start address, instead of size.

Rationale: 1) TP7 compatibility, 2) easier debugging of heap corruption
  problems

git-svn-id: trunk@28518 -
This commit is contained in:
nickysn 2014-08-24 16:07:01 +00:00
parent 0a2899573a
commit 03a838556f

View File

@ -178,7 +178,7 @@
p := TinyHeapBlocks;
prev := nil;
while assigned(p) and (p^.Size < size) do
while assigned(p) and (TTinyHeapPointerArithmeticType(p) < TTinyHeapPointerArithmeticType(b)) do
begin
prev := p;
p := p^.Next;