diff --git a/src/gc-pool-alloc.c b/src/gc-pool-alloc.c deleted file mode 100644 index 4290428b60bd5..0000000000000 --- a/src/gc-pool-alloc.c +++ /dev/null @@ -1,35 +0,0 @@ -// This file is a part of Julia. License is MIT: https://julialang.org/license - -#include "gc-markqueue.h" -#include "gc.h" - -#ifdef __cplusplus -extern "C" { -#endif - -static size_t pow2[10] = {1, 2, 4, 8. 16, 32, 64, 128, 256, 512, 1024}; - -static ws_queue_t gc_recycled_pages; - -jl_taggedvalue_t *gc_pool_alloc(jl_ptls_t ptls, size_t sz) -{ - int i = 0; - for (; pow2[i] < sz; i++) - ; - - jl_thread_heap_t *pheap = &ptls->heap; - jl_gc_pagedir_entry_t *entry = &pheap->pa_dir_entries[i]; - - jl_taggedvalue_t *obj; - - if (entry->head->pfl != NULL) { - obj = entry->head->pfl; - entry->head->pfl = obj->next; - } - - return obj; -} - -#ifdef __cplusplus -} -#endif \ No newline at end of file diff --git a/src/gc-pool-alloc.h b/src/gc-pool-alloc.h deleted file mode 100644 index 6f799f43f67d5..0000000000000 --- a/src/gc-pool-alloc.h +++ /dev/null @@ -1,16 +0,0 @@ -// This file is a part of Julia. License is MIT: https://julialang.org/license - -#ifndef JL_GC_POOL_ALLOC_H -#define JL_GC_POOL_ALLOC_H - -#include "gc.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} -#endif - -#endif \ No newline at end of file