We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jl_gc_new_weakref
1 parent f285de5 commit 5cdf378Copy full SHA for 5cdf378
src/gc-common.h
@@ -185,4 +185,13 @@ extern jl_ptls_t* gc_all_tls_states;
185
186
extern int gc_logging_enabled;
187
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
197
#endif // JL_GC_COMMON_H
0 commit comments