Skip to content

Features that require libc #500

@madsmtm

Description

@madsmtm

We kinda need to figure out a general policy on how we handle features that require libc (or at least just linking to it).

There are at least two things I'd like to do:

  • Move MainThreadMarker into objc2 (with a more efficient implementation, namely libc::pthread_main_np)
    • Although really convenient, unsure if this is desired to have in objc2? I feel like it belongs in some lower-level library, though we don't have that, so I guess it'll have to be here.
  • The things gated behind malloc support requires libc::free, I'd like to remove that feature gate to be able to verify more things in debug_assertions. Done in Work towards removing malloc_buf #547.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-objc2Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions