Perform proper refcounting on imported crate-cache entries.

46c74a9
Opened by Graydon Hoare at 2011-01-27 01:36:08

The crate-cache entries (and thus 'use'd crates) currently possess the ability to be flushed and reloaded, but the import calls fail to perform the refcounts on either side of cross-crate calls, and there isno exposed way to ask the runtime to request a flush/reload.

This will require some unwinding work as well, to drop refcounts when unwinding across a cross-crate call. And closure work, for captured imports. And other stuff.

  1. WONTFIX (linkage scheme will change; unloading will no longer be possible)

    Graydon Hoare at 2011-01-27 01:36:08