tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Increase PTHREAD_KEYS_MAX



On May 20,  9:26am, manu%netbsd.org@localhost (Emmanuel Dreyfus) wrote:
-- Subject: Re: Increase PTHREAD_KEYS_MAX

| On Wed, May 13, 2015 at 12:30:38PM +0000, Christos Zoulas wrote:
| > Just make it an array that is dynamically allocated based on an environment
| > variable; this is what others do (it seems).
| 
| This is quickly getting ugly: malloc() calls pthread_key_create(), 
| which means we cannot allocate though the standard way until we have 
| allocated.

use mmap.

christos


Home | Main Index | Thread Index | Old Index