On 12/26/2013 02:58:01 PM, Richard Braun wrote:
Why __builtin_malloc and __builtin_free ??

I get segfaults in kalloc(). I don't know what I'm doing wrong.

> +                  if (futex->num_futexed_threads == 128)
> +                          return FUTEX_RESOURCE_SHORTAGE;

I assume this limit is temporary. If not, remove it, there is no reason
to add a constraint like this one.

This is just for testing until I found a dynamic allocation function
that I can use with thread allocation.

Thanks for the comments!



Reply via email to