mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 00:19:19 +02:00
* generate a run time error 203 in the tiny heap in case there's not enough
memory for a memory allocation and ReturnNilIfGrowHeapFails is false git-svn-id: trunk@25727 -
This commit is contained in:
parent
babbc21afd
commit
327a15488e
@ -75,7 +75,10 @@
|
|||||||
InternalTinyFreeMem(pointer(ptruint(p)+AllocSize), RestSize);
|
InternalTinyFreeMem(pointer(ptruint(p)+AllocSize), RestSize);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result := nil;
|
if ReturnNilIfGrowHeapFails then
|
||||||
|
Result := nil
|
||||||
|
else
|
||||||
|
HandleError(203);
|
||||||
{$ifdef DEBUG_TINY_HEAP}
|
{$ifdef DEBUG_TINY_HEAP}
|
||||||
Writeln(ptruint(Result));
|
Writeln(ptruint(Result));
|
||||||
{$endif DEBUG_TINY_HEAP}
|
{$endif DEBUG_TINY_HEAP}
|
||||||
|
Loading…
Reference in New Issue
Block a user