Added conditional debug output for GC related operations

This commit is contained in:
Egor Sheremetov 2024-02-28 11:01:48 +01:00 committed by Roman Venediktov
parent bcc85384c3
commit 05e4c15fe2
3 changed files with 18 additions and 6 deletions

View file

@ -38,9 +38,9 @@ auint; // adaptive unsigned int
#define CLOSURE_TAG 0x00000007
#define UNBOXED_TAG 0x00000009 // Not actually a data_header; used to return from LkindOf
#ifdef X86_64
#define LEN_MASK (UINT64_MAX-7)
#define LEN_MASK (UINT64_MAX^7)
#else
#define LEN_MASK (UINT32_MAX-7)
#define LEN_MASK (UINT32_MAX^7)
#endif
#define LEN(x) (ptrt)(((ptrt)x & LEN_MASK) >> 3)
#define TAG(x) (x & 7)