mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Added check of invariance of objects' topology before and after compaction
This commit is contained in:
parent
11d496405b
commit
31551e73fd
5 changed files with 112 additions and 16 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
// this flag makes GC behavior a bit different for testing purposes.
|
||||
//#define DEBUG_VERSION
|
||||
//#define FULL_INVARIANT_CHECKS
|
||||
|
||||
#define STRING_TAG 0x00000001
|
||||
//# define STRING_TAG 0x00000000
|
||||
|
|
@ -48,7 +49,7 @@ typedef struct {
|
|||
// other utility info (i.e., size for array, number of fields for s-expression)
|
||||
int data_header;
|
||||
|
||||
#ifdef DEBUG_VERSION
|
||||
#ifdef FULL_INVARIANT_CHECKS
|
||||
size_t id;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue