diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-06-30 12:35:19 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-06-30 18:36:12 +0200 |
| commit | 31ec26d46afe543508b4a11d33309afefa85b29a (patch) | |
| tree | f6cfe84a8cf5d1f82cdb9328da4d3aaeec7d1bad /src/rt/sync/timer.cpp | |
| parent | 8c36a76626badd7c8e9cf2aee75f121f2acdb749 (diff) | |
| download | rust-31ec26d46afe543508b4a11d33309afefa85b29a.tar.gz rust-31ec26d46afe543508b4a11d33309afefa85b29a.zip | |
Make calling resource destructors work cross-crate
Tydescs are currently re-created for each compilation unit (and I guess for structural types, they have to be, though the duplication still bothers me). This means a destructor can not be inlined in the drop glue for a resource type, since other crates don't have access to the destructor body. Destructors are now compiled as separate functions with an external symbol that can be looked up in the crate (under the resource type's def_id), and called from the drop glue.
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions
