develooper Front page | perl.vmsperl | Postings from March 2006

Re: Threads and safesysfree?

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
March 9, 2006 03:17
Subject:
Re: Threads and safesysfree?
Message ID:
20060309100151.GP8420@iabyn.com
On Tue, Mar 07, 2006 at 10:50:45PM -0500, John E. Malmberg wrote:
> In util.c the routines Perl_safesysmalloc and friends are updating a 
> linked list.
> 
> There does not seem to be any protection from a different thread also 
> updating the same linked list at the same time, especially on a 
> multi-processor system.

They are updating a per-thread linked list, so I think it's thread-safe.

-- 
The optimist believes that he lives in the best of all possible worlds.
As does the pessimist.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About