search for: alloc_id

Displaying 2 results from an estimated 2 matches for "alloc_id".

Did you mean: alloc_fd
2012 Sep 26
1
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...2012 paper) == * All instrumented code: ShadowAddr = (Addr >> 3) + offset; k = *ShadowAddr; if (k != 0 && (Addr & 7) + AccessSize > k) ReportAndCrash(Addr); == Concept code (code blowup, though) == ShadowAddr = (Addr >> 3) + offset; k = *ShadowAddr; alloc_id = k >> 3; shadow = k & 0x0F; * Thread/plugin code: if (alloc_id != my_short_id || // alloc belongs to other thread shadow && (Addr & 7) + AccessSize > shadow) ReportAndCrash(Addr); * Main code: if (alloc_id == 0x1F || // unallocated memory shado...
2012 Sep 26
0
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...dowAddr = (Addr >> 3) + offset; > k = *ShadowAddr; > > if (k != 0 && (Addr & 7) + AccessSize > k) > ReportAndCrash(Addr); > > == Concept code (code blowup, though) == > > ShadowAddr = (Addr >> 3) + offset; > k = *ShadowAddr; > alloc_id = k >> 3; > shadow = k & 0x0F; > > * Thread/plugin code: > > if (alloc_id != my_short_id || // alloc belongs to other thread > k && (Addr & 7) + AccessSize > k) > ReportAndCrash(Addr); > > > * Main code: > > if (alloc_id...