source: src/examples/gc_no_raii/internal/object_header.h@ e47f529

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since e47f529 was e47f529, checked in by Thierry Delisle <tdelisle@…>, 10 years ago

more conversion and compile seems to work well

  • Property mode set to 100644
File size: 404 bytes
Line 
1#pragma once
2
3#include <stddef.h>
4#include <stdint.h>
5
6#include "tools.h"
7
8static const void* CANARY_VALUE = (void*)0xCAFEBABACAFEBABA;
9
10struct gcpointer_t;
11
12struct gc_object_header
13{
14 #if _DEBUG
15 void* canary_start;
16 #endif
17
18 size_t size;
19 gcpointer_t* root_chain;
20 gcpointer_t* type_chain;
21 struct gc_object_header* forward;
22 bool is_forwarded;
23
24 #if _DEBUG
25 void* canary_end;
26 #endif
27};
Note: See TracBrowser for help on using the repository browser.