How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 20: Line 20:
<syntaxhighlight lang="C">
<syntaxhighlight lang="C">
struct Block {
struct Block {
     int  size;
     int  size; // size of the block
     char* block;
     char* block; // pointer to the memory region
     struct Block* next;
     struct Block* next; // pointer to the next block
};
};
</syntaxhighlight>
</syntaxhighlight>
Line 52: Line 52:
}
}
</syntaxhighlight>
</syntaxhighlight>


== Nasal memory pools ==
== Nasal memory pools ==

Navigation menu