why2_get_memory_identifier¶
Parameters¶
This functions doesn't take any parameters.
Attributes¶
Return type | char * |
Header comment | RETURNS STRING USED IN LINKED LIST (IN memory.c) FOR IDENTIFYING NODES WHEN RUNNING GARBAGE COLLECTOR |
Added in commit | 70335e67ad3e7ef3bc693741a03cb91962b91863 |
Description¶
Returns string, which is used in garbage collector for identifying (separating) nodes.
Every allocation has its own ID, which is set to lastly used memory_identifier
. This separates allocations in code to blocks and you can run GC with the memory_identifier
to deallocate those blocks.