This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Change default allocator?


Loren James Rittle wrote:
 
[...]
>         pthread_t *thread;
[...no reference to thread...]
>                 pthread_create(thread, &pthread_attr_default, worker, NULL);
[...]

Under any OS that has decent memory protection, this code sequence
should core dump.  I won't even ask where this code actually runs
since I am somewhat afraid to find out... ;-)

You can relax - this is the code of a sloppy written testfile to check wether it really was the allocation overhead or not, we are fully aware of this.

Thanks anyway - I'll be more careful on my next post ;-)

/Stefan

 

Regards,
Loren

-- 
Military intelligence is a contradiction in terms.
 
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]