Lines Matching refs:shared
147 std::atomic<int32_t>* shared = reinterpret_cast<std::atomic<int32_t>*>( in TestUnmapWritableAfterFork() local
155 shared[0] = 0; in TestUnmapWritableAfterFork()
172 shared[0] = 1; in TestUnmapWritableAfterFork()
175 while (shared[0] != 2) { in TestUnmapWritableAfterFork()
188 while (shared[0] != 1) { in TestUnmapWritableAfterFork()
195 shared[0] = 2; in TestUnmapWritableAfterFork()
204 munmap(shared, kPageSize); in TestUnmapWritableAfterFork()
245 std::atomic<int32_t>* shared = reinterpret_cast<std::atomic<int32_t>*>( in TestMadviseDontFork() local
253 shared[0] = 0; in TestMadviseDontFork()
262 shared[0] = 1; in TestMadviseDontFork()
265 while (shared[0] != 2) { in TestMadviseDontFork()
277 while (shared[0] != 1) { in TestMadviseDontFork()
284 shared[0] = 2; in TestMadviseDontFork()
294 munmap(shared, kPageSize); in TestMadviseDontFork()
329 std::atomic<int32_t>* shared = reinterpret_cast<std::atomic<int32_t>*>( in TestFromSharedToPrivate() local
343 shared[0] = 0; in TestFromSharedToPrivate()
358 shared[0] = 0; in TestFromSharedToPrivate()
380 while (shared[0] != 1) { in TestFromSharedToPrivate()
386 shared[0] = 2; in TestFromSharedToPrivate()
396 while (shared[0] != 3) { in TestFromSharedToPrivate()
406 shared[0] = 1; in TestFromSharedToPrivate()
409 while (shared[0] != 2) { in TestFromSharedToPrivate()
416 shared[0] = 3; in TestFromSharedToPrivate()
425 shared[0] = 0; in TestFromSharedToPrivate()
436 shared[0] = 1; in TestFromSharedToPrivate()
439 while (shared[0] != 2) { in TestFromSharedToPrivate()
452 while (shared[0] != 1) { in TestFromSharedToPrivate()
458 shared[0] = 2; in TestFromSharedToPrivate()
467 shared[0] = 0; in TestFromSharedToPrivate()
475 shared[0] = 1; in TestFromSharedToPrivate()
483 while (shared[0] != 1) { in TestFromSharedToPrivate()
494 munmap(shared, kPageSize); in TestFromSharedToPrivate()