Skip to content

Commit 35fe86d

Browse files
committed
export upcall_clone_type_desc
1 parent 1869306 commit 35fe86d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/rt/memory_region.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//
1616
// 0 --- no headers, no debugging support
1717
// 1 --- support poison, but do not track allocations
18-
// 2 --- track allocations in deatil
18+
// 2 --- track allocations in detail
1919
//
2020
// NB: please do not commit code with level 2. It's
2121
// hugely expensive and should only be used as a last resort.

src/rt/rust_upcall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void upcall_s_clone_type_desc(s_clone_type_desc_args *args)
224224
* Called to deep-clone type descriptors so they can be attached to a sendable
225225
* function. Eventually this should perhaps move to a centralized hashtable.
226226
*/
227-
type_desc *
227+
extern "C" CDECL type_desc *
228228
upcall_clone_type_desc(type_desc *td) {
229229
s_clone_type_desc_args args = { td, 0 };
230230
SWITCH_STACK(&args, upcall_s_clone_type_desc);

src/rt/rustrt.def.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ upcall_dynastack_free
5858
upcall_dynastack_mark
5959
upcall_fail
6060
upcall_free
61+
upcall_clone_type_desc
6162
upcall_get_type_desc
6263
upcall_log_type
6364
upcall_malloc

0 commit comments

Comments
 (0)