Tidy fixes
This commit is contained in:
@@ -710,7 +710,7 @@ unsafe fn local_set<T>(task: *rust_task, key: local_data_key<T>, -data: @T) {
|
|||||||
// Key already had a value set, old_data_ptr, whose reference we
|
// Key already had a value set, old_data_ptr, whose reference we
|
||||||
// need to drop. After that, overwriting its slot will be safe.
|
// need to drop. After that, overwriting its slot will be safe.
|
||||||
// (The heap-allocated finaliser will be freed in the overwrite.)
|
// (The heap-allocated finaliser will be freed in the overwrite.)
|
||||||
// FIXME(2734): just transmuting old_data_ptr to @T doesn't work,
|
// FIXME(#2734): just transmuting old_data_ptr to @T doesn't work,
|
||||||
// similarly to the sample there (but more our/unsafety's fault?).
|
// similarly to the sample there (but more our/unsafety's fault?).
|
||||||
old_finaliser(old_data_ptr);
|
old_finaliser(old_data_ptr);
|
||||||
(*map).set_elt(index, new_entry);
|
(*map).set_elt(index, new_entry);
|
||||||
|
|||||||
@@ -379,8 +379,8 @@ rust_task::call_on_c_stack(void *args, void *fn_ptr) {
|
|||||||
// Too expensive to check
|
// Too expensive to check
|
||||||
// assert(on_rust_stack());
|
// assert(on_rust_stack());
|
||||||
|
|
||||||
// The shim functions generated by rustc contain the morestack prologue, so
|
// The shim functions generated by rustc contain the morestack prologue,
|
||||||
// we need to let them know they have enough stack.
|
// so we need to let them know they have enough stack.
|
||||||
record_sp_limit(0);
|
record_sp_limit(0);
|
||||||
|
|
||||||
uintptr_t prev_rust_sp = next_rust_sp;
|
uintptr_t prev_rust_sp = next_rust_sp;
|
||||||
|
|||||||
Reference in New Issue
Block a user