search for: my_short_id

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

2012 Sep 26
1
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...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 shadow != 0 && (Addr & 7) + AccessSize > shadow) ReportAndCrash(Addr); == Les...
2012 Sep 26
0
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...cessSize > 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 != 0x1F || // unallocated memory > k != 0 && (Addr & 7) + AccessSize > k) > ReportAn...