Skip to content

Commit 19dfec2

Browse files
committed
auto merge of #4852 : Caseus/rust/issue-4836, r=brson
Simple removal of rust_compare_and_swap_ptr from rt, as per Issue #4836
2 parents d90abd5 + e2e4747 commit 19dfec2

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/rt/rust_builtin.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -776,12 +776,6 @@ rust_osmain_sched_id() {
776776
return task->kernel->osmain_sched_id();
777777
}
778778

779-
extern "C" CDECL bool
780-
rust_compare_and_swap_ptr(intptr_t *address,
781-
intptr_t oldval, intptr_t newval) {
782-
return sync::compare_and_swap(address, oldval, newval);
783-
}
784-
785779
extern "C" void
786780
rust_task_inhibit_kill(rust_task *task) {
787781
task->inhibit_kill();

src/rt/rustrt.def.in

-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ rust_dbg_call
154154
rust_dbg_do_nothing
155155
rust_dbg_breakpoint
156156
rust_osmain_sched_id
157-
rust_compare_and_swap_ptr
158157
rust_task_inhibit_kill
159158
rust_task_allow_kill
160159
rust_task_inhibit_yield

0 commit comments

Comments
 (0)