microsoft / verona-rt

The runtime for the Verona project
MIT License
25 stars 14 forks source link

Modified Starling proof of reference counting #11

Closed mjp41 closed 1 year ago

mjp41 commented 1 year ago

Added explicit state for destruction and deallocation of the underlying object. This simplified a few of the structures to make it clearer when things happen.

It still has some deficiencies around not being able to guarantee the destructor was called before it was deallocated.

mjp41 commented 1 year ago

FYI @septract, @mattwindsor91, @bensimner, I have updated the starling proof of the Verona reference counting mechanism. I think it is slightly clearer now.

mjp41 commented 1 year ago

I pushed a second version that uses an auxiliary variable to enforce that destruction happens before deallocation: docs/internal/verona_rc_wrc_aux.cvf