11 Feb
2023
11 Feb
'23
2:27 p.m.
Jinoh Kang (@iamahuman) commented about dlls/ntdll/heap.c:
#define REGION_ALIGN 0x10000 #define BLOCK_ALIGN (2 * sizeof(void *))
-struct block +struct DECLSPEC_ALIGN(8) block { - WORD block_size; /* block size in multiple of BLOCK_ALIGN */ + /* block size in multiple of BLOCK_ALIGN */ + WORD block_size; + /* unused size (used block) / high size bits (free block) */ + WORD tail_size; + /* offset to region base / first group block (LFH block) */ Maybe we want to keep the old documentation?
/* Non-LFH: offset to the region base in multiple of REGION_ALIGN
* LFH: number of blocks in the group before the current block
*/
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1628#note_23829