mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 20:09:18 +02:00
* TinyHeapAllocGranularity changed to SizeOf(TTinyHeapBlock). This fixes a bug
where the free blocks may become fragmented, even though all the memory has been freed, following certain allocation patterns. git-svn-id: trunk@28419 -
This commit is contained in:
parent
902c25fafa
commit
2e0c40d33b
@ -46,7 +46,7 @@
|
|||||||
const
|
const
|
||||||
TinyHeapMinBlock = sizeof(TTinyHeapBlock);
|
TinyHeapMinBlock = sizeof(TTinyHeapBlock);
|
||||||
|
|
||||||
TinyHeapAllocGranularity = sizeof(Pointer);
|
TinyHeapAllocGranularity = sizeof(TTinyHeapBlock);
|
||||||
|
|
||||||
var
|
var
|
||||||
TinyHeapBlocks: PTinyHeapBlock = nil;
|
TinyHeapBlocks: PTinyHeapBlock = nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user