mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 20:45:06 +02:00
Mark internal functions as static
This commit is contained in:
parent
838240fceb
commit
26b426c307
1 changed files with 3 additions and 3 deletions
6
gc.c
6
gc.c
|
@ -493,7 +493,7 @@ void gc_print_fixed_size_free_list(gc_heap *h)
|
||||||
* @brief Essentially this is half of the sweep code, for sweeping bump&pop
|
* @brief Essentially this is half of the sweep code, for sweeping bump&pop
|
||||||
* @param h Heap page to convert
|
* @param h Heap page to convert
|
||||||
*/
|
*/
|
||||||
size_t gc_convert_heap_page_to_free_list(gc_heap *h, gc_thread_data *thd)
|
static size_t gc_convert_heap_page_to_free_list(gc_heap *h, gc_thread_data *thd)
|
||||||
{
|
{
|
||||||
size_t freed = 0;
|
size_t freed = 0;
|
||||||
object p;
|
object p;
|
||||||
|
@ -584,7 +584,7 @@ size_t gc_convert_heap_page_to_free_list(gc_heap *h, gc_thread_data *thd)
|
||||||
* memory slots to the heap. It is only called by the collector thread after
|
* memory slots to the heap. It is only called by the collector thread after
|
||||||
* the heap has been traced to identify live objects.
|
* the heap has been traced to identify live objects.
|
||||||
*/
|
*/
|
||||||
gc_heap *gc_sweep_fixed_size(gc_heap * h, int heap_type, gc_thread_data *thd)
|
static gc_heap *gc_sweep_fixed_size(gc_heap * h, int heap_type, gc_thread_data *thd)
|
||||||
{
|
{
|
||||||
short heap_is_empty;
|
short heap_is_empty;
|
||||||
object p, end;
|
object p, end;
|
||||||
|
@ -1224,7 +1224,7 @@ void *gc_try_alloc_slow(gc_heap *h_passed, gc_heap *h, int heap_type, size_t siz
|
||||||
* This function will fail if there is no space on the heap for the
|
* This function will fail if there is no space on the heap for the
|
||||||
* requested object.
|
* requested object.
|
||||||
*/
|
*/
|
||||||
void *gc_try_alloc_fixed_size(gc_heap * h, int heap_type, size_t size, char *obj, gc_thread_data * thd)
|
static void *gc_try_alloc_fixed_size(gc_heap * h, int heap_type, size_t size, char *obj, gc_thread_data * thd)
|
||||||
{
|
{
|
||||||
void *result;
|
void *result;
|
||||||
//gc_heap *h_passed = h;
|
//gc_heap *h_passed = h;
|
||||||
|
|
Loading…
Add table
Reference in a new issue