mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Revert "rt: Unique allocations have -1 ref count"
This reverts commit 422aec85d6.
This commit is contained in:
@@ -168,10 +168,7 @@ exchange_malloc(rust_task *task, type_desc *td, uintptr_t size) {
|
||||
void *p = task->kernel->malloc(total_size, "exchange malloc");
|
||||
|
||||
rust_opaque_box *header = static_cast<rust_opaque_box*>(p);
|
||||
header->ref_count = -1; // This is not ref counted
|
||||
header->td = td;
|
||||
header->prev = 0;
|
||||
header->next = 0;
|
||||
|
||||
memset(&header[1], '\0', body_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user