Skip to content

Which order to run box annihilator and TLS dtor? #8302

Closed
@brson

Description

@brson

It looks like in the current codebase we need to run the annihilator before the TLS dtor because rustc has boxes in cycles that access TLS, but TLS dtors could also create cycles requiring GC. Not sure how to resolve this interdependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions