Home
last modified time | relevance | path

Searched refs:OldHeader (Results 1 – 4 of 4) sorted by relevance

/external/scudo/standalone/tests/
Dchunk_test.cpp43 scudo::Chunk::UnpackedHeader OldHeader = {}; in TEST() local
44 OldHeader.Origin = scudo::Chunk::Origin::Malloc; in TEST()
45 OldHeader.ClassId = 0x42U; in TEST()
46 OldHeader.SizeOrUnusedBytes = Size; in TEST()
47 OldHeader.State = scudo::Chunk::State::Allocated; in TEST()
51 scudo::Chunk::storeHeader(Cookie, P, &OldHeader); in TEST()
53 scudo::Chunk::UnpackedHeader NewHeader = OldHeader; in TEST()
55 scudo::Chunk::compareExchangeHeader(Cookie, P, &NewHeader, &OldHeader); in TEST()
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp391 UnpackedHeader OldHeader; in deallocate() local
392 Chunk->loadHeader(&OldHeader); in deallocate()
393 if (OldHeader.State != ChunkAllocated) { in deallocate()
397 UnpackedHeader NewHeader = OldHeader; in deallocate()
399 Chunk->compareExchangeHeader(&NewHeader, &OldHeader); in deallocate()
468 UnpackedHeader OldHeader; in reallocate() local
469 uptr Size = getUsableSize(OldPtr, &OldHeader); in reallocate()
473 if (OldHeader.AllocType != FromMalloc) { in reallocate()
477 UnpackedHeader NewHeader = OldHeader; in reallocate()
481 Chunk->compareExchangeHeader(&NewHeader, &OldHeader); in reallocate()
[all …]
/external/scudo/standalone/
Dcombined.h478 Chunk::UnpackedHeader OldHeader; variable
479 Chunk::loadHeader(Cookie, OldPtr, &OldHeader);
481 if (UNLIKELY(OldHeader.State != Chunk::State::Allocated))
488 if (UNLIKELY(OldHeader.Origin != Chunk::Origin::Malloc))
490 OldHeader.Origin, Chunk::Origin::Malloc);
493 void *BlockBegin = getBlockBegin(OldPtr, &OldHeader);
496 const uptr ClassId = OldHeader.ClassId;
500 OldSize = OldHeader.SizeOrUnusedBytes;
504 (reinterpret_cast<uptr>(OldPtr) + OldHeader.SizeOrUnusedBytes);
511 Chunk::UnpackedHeader NewHeader = OldHeader;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/
DResourceFileWriter.cpp931 const auto &OldHeader = ItemEntries[ID]; in visitIconOrCursorResource() local
932 ResourceDirEntryStart NewHeader = OldHeader; in visitIconOrCursorResource()
935 NewHeader.Cursor.Width = OldHeader.Icon.Width; in visitIconOrCursorResource()
940 NewHeader.Cursor.Height = OldHeader.Icon.Height * 2; in visitIconOrCursorResource()