-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
blockedother issues need to be resolved before this can be worked onother issues need to be resolved before this can be worked on
Description
Expected Behavior
__malloc_lock and __malloc_unlock should be resolved to their definitions in src/system/mlock.c
Observed Behavior
__malloc_lock and __malloc_unlock are resolved to their definitions in libc.a
Additional Information
__malloc_lock and __malloc_unlock are used to prevent the scheduler preempting while a task is allocating memory. If this were to happen, memory corruption would be highly likely.
I don't know why libc has these definitions, per my knowledge they are supposed to be stubbed. Before we just strip these symbols from libc, we should figure out why they have strong definitions in libc just in case.
Prerequisites
Metadata
Metadata
Assignees
Labels
blockedother issues need to be resolved before this can be worked onother issues need to be resolved before this can be worked on