Skip to content

Commit 5cdf378

Browse files
authored
Put jl_gc_new_weakref in a header file again (#56319)
1 parent f285de5 commit 5cdf378

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/gc-common.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,13 @@ extern jl_ptls_t* gc_all_tls_states;
185185

186186
extern int gc_logging_enabled;
187187

188+
// =========================================================================== //
189+
// Misc
190+
// =========================================================================== //
191+
192+
// Allocates a new weak-reference, assigns its value and increments Julia allocation
193+
// counters. If thread-local allocators are used, then this function should allocate in the
194+
// thread-local allocator of the current thread.
195+
JL_DLLEXPORT jl_weakref_t *jl_gc_new_weakref(jl_value_t *value);
196+
188197
#endif // JL_GC_COMMON_H

0 commit comments

Comments
 (0)