mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Added TODO
This commit is contained in:
parent
d9c27b7756
commit
4049304095
1 changed files with 11 additions and 0 deletions
11
gc.c
11
gc.c
|
@ -572,6 +572,17 @@ void *gc_alloc(gc_heap_root * hrt, size_t size, char *obj, gc_thread_data * thd,
|
|||
heap_type = HEAP_SM;
|
||||
} else if (size <= 64) {
|
||||
heap_type = HEAP_64;
|
||||
/*
|
||||
TODO:
|
||||
from http://stackoverflow.com/a/32717129/101258
|
||||
#if INTPTR_MAX == INT64_MAX
|
||||
// 64-bit
|
||||
#elif INTPTR_MAX == INT32_MAX
|
||||
// 32-bit
|
||||
#else
|
||||
#error Unknown pointer size or missing size macros!
|
||||
#endif
|
||||
*/
|
||||
} else if (size <= 96) {
|
||||
heap_type = HEAP_96;
|
||||
// } else if (size <= 128) {
|
||||
|
|
Loading…
Add table
Reference in a new issue