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

Adapt to lib-musl and the new threading interface #12

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

huyang531
Copy link

@huyang531 huyang531 commented Jun 16, 2024

This PR introduces three changes:

  1. Makefile.uk: Change the library dependency from lib-newlib and lib-pthread-embedded to lib-musl. The musl library also includes a pthread interface.
  2. glue.c: Change the obsolete variable names to adapt to the new threading interface.
  3. mimalloc.h and mimalloc_impl.h: Include a new header to silence compiler errors.

This PR is part of an ongoing process of porting the latest mimalloc allocator to the latest (v0.17.0) Unikraft core. @RaduNichita @razvanvirtan @razvand

With this PR, alongside an addition of stdatomic.h to the MUSL library, lib-mimalloc (based on v1.6.3 of the mimalloc allocator) can now be compiled using lib-musl for Unikraft core v0.17.0.

Signed-off-by: Yang Hu yanghuu531@gmail.com

Signed-off-by: Yang Hu <yanghuu531@gmail.com>
Signed-off-by: Yang Hu <yanghuu531@gmail.com>
@huyang531 huyang531 marked this pull request as ready for review August 25, 2024 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant