Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Fix Rc with Gc inside of it #11533

Closed
wants to merge 1 commit into from

Commits on Jan 14, 2014

  1. std: Fix Rc with Gc inside of it

    The code in Rc assumes that the inner box is allocated on the global exchange
    heap, which is not always true. If T has managed pointers inside of it, it's
    allocate on the local heap instead.
    
    This commit reconciles these two modes of T by carefully interacting with the
    inner box (with special treatment of its deallocation).
    
    Closes rust-lang#11532
    alexcrichton committed Jan 14, 2014
    Configuration menu
    Copy the full SHA
    66c8984 View commit details
    Browse the repository at this point in the history