Improved sanity checking for RC invariants.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Store old RC in update frame.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Implement the primops and source-language support.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Don't do block_record accounting if not necessary

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Wire up prim-ops to use cmmMaybeAllocate

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Handle nursery allocation.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Listeners.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Make some listeners more timely.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Add RCRef.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Add RC_FRAME type and properly restore RC on exception.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Don't force nursery allocation.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Handle stack overflows.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Limit AP_STACK allocation. (WARNING: this is a GIANT HACK)

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Disable compaction for now.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Don't maintain nurseries for dead containers.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Fix SM bug

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Remove dead containers from RC_LIST WARNING MEMORY LEAK

LEAKS MEMORY! need to stgFree the ResourceContainer struct,
but then we need to invalidate existing RC# pointers.  A little
tricky, so don't bother for now.

Tightens up some invariants, yay!

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Only conclude it's dead on major_gc

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Make -Dg less chatty

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Threads inherit parent RC.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>