1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

LibC: Remove the initialization workaround from s_allocation_enabled

This commit is contained in:
Tim Schumacher 2022-07-19 20:59:34 +02:00 committed by Andreas Kling
parent 3f59cb5e70
commit 7c824b84e2
2 changed files with 1 additions and 12 deletions

View file

@ -64,9 +64,6 @@ extern "C" {
static void* pthread_create_helper(void* (*routine)(void*), void* argument, void* stack_location, size_t stack_size)
{
// HACK: This is a __thread - marked thread-local variable. If we initialize it globally, VERY weird errors happen.
// Therefore, we need to do the initialization here and in __malloc_init().
s_allocation_enabled = true;
s_stack_location = stack_location;
s_stack_size = stack_size;
void* ret_val = routine(argument);