Files
rust/src/libstd
Huon Wilson da45340ab8 Ensure an Rc isn't freed while running its own destructor.
A weak pointer inside itself will have its destructor run when the last
strong pointer to that data disappears, so we need to make sure that the
Weak and Rc destructors don't duplicate work (i.e. freeing).

By making the Rcs effectively take a weak pointer, we ensure that no
Weak destructor will free the pointer while still ensuring that Weak
pointers can't be upgraded to strong ones as the destructors run.

This approach of starting weak at 1 is what libstdc++ does.

Fixes #12046.
2014-02-06 09:05:59 +11:00
..
2014-02-04 00:06:08 -08:00
2014-02-03 09:32:33 -08:00
2014-02-04 00:06:08 -08:00
2014-01-31 21:43:07 -08:00
2014-01-31 21:43:07 -08:00
2014-02-01 18:24:44 -05:00
2014-01-07 18:49:13 -08:00
2014-02-04 00:15:27 +01:00
2014-01-07 18:49:13 -08:00
2014-01-09 15:41:46 +11:00
2014-02-02 02:58:57 +11:00
2014-02-03 09:32:33 -08:00
2014-02-03 09:32:33 -08:00
2014-02-03 09:32:33 -08:00
2014-02-04 00:15:27 +01:00
2014-01-21 22:00:18 +11:00
2014-02-04 00:06:08 -08:00
2014-02-04 00:06:08 -08:00
2014-02-03 09:32:33 -08:00
2014-02-03 09:32:34 -08:00
2014-02-04 00:15:27 +01:00
2014-02-03 09:32:33 -08:00
2014-01-25 21:38:25 +13:00
2013-12-08 02:55:28 -05:00
2014-02-04 00:15:27 +01:00