remove reference counting headers from ~

Unique pointers and vectors currently contain a reference counting
header when containing a managed pointer.

This `{ ref_count, type_desc, prev, next }` header is not necessary and
not a sensible foundation for tracing. It adds needless complexity to
library code and is responsible for breakage in places where the branch
has been left out.

The `borrow_offset` field can now be removed from `TyDesc` along with
the associated handling in the compiler.

Closes #9510
Closes #11533
This commit is contained in:
Daniel Micay 2014-01-14 02:46:58 -05:00
parent 9075025c7b
commit 0e885e42b1
22 changed files with 152 additions and 148 deletions

View file

@ -49,9 +49,9 @@
// debugger:print stack_managed.next.val->val.value
// check:$12 = 11
// debugger:print unique_managed->val.value
// debugger:print unique_managed->value
// check:$13 = 12
// debugger:print unique_managed->val.next.val->val.value
// debugger:print unique_managed->next.val->val.value
// check:$14 = 13
// debugger:print box_managed->val.value