• danno's avatar
    Create a internal native context used only for TF-generated code stubs · a1475dae
    danno authored
    Until now, TF-generated code stubs piggy-backed off of the builtin
    context. Since generation of code stubs is lazy, stubs generated at
    different times in different native contexts would contain embedded
    pointers different builtin contexts, leading to cross-context references
    and memory leaks.
    
    After this CL, all TF-generated code stubs are generated inside a
    internal thinned-out, native context that lives solely for the
    purpose of hosting generated code stubs.
    
    Review URL: https://codereview.chromium.org/1213203007
    
    Cr-Commit-Position: refs/heads/master@{#29593}
    a1475dae
contexts.h 30.3 KB