gluster-devel
[Top][All Lists]
Advanced

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

Re: [Gluster-devel] catching unitialized structures


From: Emmanuel Dreyfus
Subject: Re: [Gluster-devel] catching unitialized structures
Date: Tue, 30 Apr 2013 04:53:07 +0200
User-agent: MacSOUP/2.7 (unregistered for 2292 days)

Vijay Bellur <address@hidden> wrote:

> There are a lot of places where we make an implicit assumption that
> GF_CALLOC and the likes memset the memory area to zero.

The problem I refer to is that on current Linux systems,
pthread_mutex_lock() will work on a zero'ed area where
pthread_mutex_init() was not called. That behavior should not be taken
for granted in the future on Linux, and it is likely to break on any non
Linux system.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]