Skip to content

Commit 9b604c4

Browse files
authored
NFC: remove unused gc_get_stack_ptr function (#55234)
1 parent 8d5b751 commit 9b604c4

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/gc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,6 @@ arraylist_t finalizer_list_marked;
218218
arraylist_t to_finalize;
219219
JL_DLLEXPORT _Atomic(int) jl_gc_have_pending_finalizers = 0;
220220

221-
222-
NOINLINE uintptr_t gc_get_stack_ptr(void)
223-
{
224-
return (uintptr_t)jl_get_frame_addr();
225-
}
226-
227221
void jl_gc_wait_for_the_world(jl_ptls_t* gc_all_tls_states, int gc_n_threads);
228222

229223
// malloc wrappers, aligned allocation

src/gc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,6 @@ STATIC_INLINE void *gc_ptr_clear_tag(void *v, uintptr_t mask) JL_NOTSAFEPOINT
549549
return (void*)(((uintptr_t)v) & ~mask);
550550
}
551551

552-
NOINLINE uintptr_t gc_get_stack_ptr(void);
553-
554552
FORCE_INLINE void gc_big_object_unlink(const bigval_t *node) JL_NOTSAFEPOINT
555553
{
556554
assert(node != oldest_generation_of_bigvals);

0 commit comments

Comments
 (0)