Skip to content

certain recursive type definitions are not allocated inline #41349

@simeonschaub

Description

@simeonschaub

In this example, Julia does not realize that B can be allocated inline, which leads to B being boxed when used inside other types:

julia> struct A{T}
           x::Ptr{T}
       end

julia> struct B
           x::A{B}
       end

julia> B.name.flags
0x00

Metadata

Metadata

Assignees

No one assigned

    Labels

    types and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions