mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 14:19:28 +02:00
* simplify RegisterTinyHeapBlock by calling InternalTinyFreeMem directly,
instead of FreeMem. We already do the alignments correctly, so going through FreeMem is no longer necessary. git-svn-id: trunk@28428 -
This commit is contained in:
parent
d72e46f199
commit
7986d0c2ca
@ -271,8 +271,7 @@
|
||||
Inc(AAddress,alignment_inc);
|
||||
Dec(ASize,alignment_inc);
|
||||
Dec(ASize,ASize mod TinyHeapAllocGranularity);
|
||||
PTinyHeapMemBlockSize(AAddress)^ := ASize - SizeOf(TTinyHeapMemBlockSize);
|
||||
FreeMem(Pointer(PTinyHeapMemBlockSize(AAddress) + 1), ASize - SizeOf(TTinyHeapMemBlockSize));
|
||||
InternalTinyFreeMem(AAddress, ASize);
|
||||
end;
|
||||
|
||||
const
|
||||
|
Loading…
Reference in New Issue
Block a user