On 01/08/2012 12:44 AM, Hershkovitz, Koby (Koby) wrote:
> Indeed I have check this patch is correctly in place.
> The relevant strace output is:
> mmap2(0x6229, 1064960, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x6229
That mmap2 is OK because the MAP_F
On Fri, Jan 6, 2012 at 4:04 PM, Joris Koster wrote:
> void releaseRef() {
> int nRefCnt = __sync_add_and_fetch(&m_nRefCnt, -1);
> if (nRefCnt == 0) {
> delete this;
> }
> }
Please read the documentation of ANNOTATE_HAPPENS_BEFORE() and
ANNOTATE_HAPPENS_AFTER(
Indeed I have check this patch is correctly in place.
The relevant strace output is:
mmap2(0x6229, 1064960, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x6229
mprotect(0x6229, 8192, PROT_NONE) = 0
mprotect(0x62392000, 8192, PROT_NONE) = 0
gettid()