Skip to content

Commit d29e8fc

Browse files
committed
rt: Remove upcall_malloc/upcall_exchange_malloc. Issue #2681
1 parent 8910b2f commit d29e8fc

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/rt/rust_upcall.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,6 @@ upcall_exchange_malloc(type_desc *td, uintptr_t size) {
177177
return args.retval;
178178
}
179179

180-
// FIXME (#2681): remove after snapshot (6/21/12)
181-
extern "C" CDECL uintptr_t
182-
upcall_exchange_malloc_dyn(type_desc *td, uintptr_t size) {
183-
rust_task *task = rust_get_current_task();
184-
s_exchange_malloc_args args = {task, 0, td, size};
185-
UPCALL_SWITCH_STACK(task, &args, upcall_s_exchange_malloc);
186-
return args.retval;
187-
}
188-
189180
struct s_exchange_free_args {
190181
rust_task *task;
191182
void *ptr;
@@ -246,16 +237,6 @@ upcall_malloc(type_desc *td, uintptr_t size) {
246237
return args.retval;
247238
}
248239

249-
// FIXME (#2681): remove after snapshot (6/21/12)
250-
extern "C" CDECL uintptr_t
251-
upcall_malloc_dyn(type_desc *td, uintptr_t size) {
252-
rust_task *task = rust_get_current_task();
253-
s_malloc_args args = {task, 0, td, size};
254-
UPCALL_SWITCH_STACK(task, &args, upcall_s_malloc);
255-
return args.retval;
256-
}
257-
258-
259240
/**********************************************************************
260241
* Called whenever an object in the task-local heap is freed.
261242
*/

src/rt/rustrt.def.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ upcall_trace
7272
upcall_free
7373
upcall_validate_box
7474
upcall_log_type
75-
upcall_malloc
7675
upcall_malloc_dyn
7776
upcall_rust_personality
7877
upcall_vec_grow
@@ -85,7 +84,6 @@ upcall_call_shim_on_rust_stack
8584
upcall_new_stack
8685
upcall_del_stack
8786
upcall_reset_stack_limit
88-
upcall_exchange_malloc
8987
upcall_exchange_malloc_dyn
9088
upcall_exchange_free
9189
rust_uv_loop_new

0 commit comments

Comments
 (0)