• Home
  • Raw
  • Download

Lines Matching refs:AllocAlignmentInteger

214 …if (std::numeric_limits<size_t>::max() - sizeof(AllocAlignmentInteger) <= n)  // If overflow would…  in tryFastMalloc()
217 void* result = malloc(n + sizeof(AllocAlignmentInteger)); in tryFastMalloc()
221 *static_cast<AllocAlignmentInteger*>(result) = Internal::AllocTypeMalloc; in tryFastMalloc()
222 result = static_cast<AllocAlignmentInteger*>(result) + 1; in tryFastMalloc()
261 …ze) != n_elements || (std::numeric_limits<size_t>::max() - sizeof(AllocAlignmentInteger) <= totalB… in tryFastCalloc()
264 totalBytes += sizeof(AllocAlignmentInteger); in tryFastCalloc()
270 *static_cast<AllocAlignmentInteger*>(result) = Internal::AllocTypeMalloc; in tryFastCalloc()
271 result = static_cast<AllocAlignmentInteger*>(result) + 1; in tryFastCalloc()
311 AllocAlignmentInteger* header = Internal::fastMallocMatchValidationValue(p); in fastFree()
326 …if (std::numeric_limits<size_t>::max() - sizeof(AllocAlignmentInteger) <= n) // If overflow would… in tryFastRealloc()
328 AllocAlignmentInteger* header = Internal::fastMallocMatchValidationValue(p); in tryFastRealloc()
331 void* result = realloc(header, n + sizeof(AllocAlignmentInteger)); in tryFastRealloc()
337 result = static_cast<AllocAlignmentInteger*>(result) + 1; in tryFastRealloc()
3691 …if (std::numeric_limits<size_t>::max() - sizeof(AllocAlignmentInteger) <= size) // If overflow wo… in CreateCacheIfNecessary()
3693 size += sizeof(AllocAlignmentInteger); in CreateCacheIfNecessary()
3698 *static_cast<AllocAlignmentInteger*>(result) = Internal::AllocTypeMalloc; in CreateCacheIfNecessary()
3699 result = static_cast<AllocAlignmentInteger*>(result) + 1; in CreateCacheIfNecessary()
3722 AllocAlignmentInteger* header = Internal::fastMallocMatchValidationValue(ptr); in CreateCacheIfNecessary()
3758 …if (std::numeric_limits<size_t>::max() - sizeof(AllocAlignmentInteger) <= totalBytes) // If overf… in CreateCacheIfNecessary()
3761 totalBytes += sizeof(AllocAlignmentInteger); in CreateCacheIfNecessary()
3767 *static_cast<AllocAlignmentInteger*>(result) = Internal::AllocTypeMalloc; in CreateCacheIfNecessary()
3768 result = static_cast<AllocAlignmentInteger*>(result) + 1; in CreateCacheIfNecessary()
3835 …if (std::numeric_limits<size_t>::max() - sizeof(AllocAlignmentInteger) <= new_size) // If overflo… in CreateCacheIfNecessary()
3837 new_size += sizeof(AllocAlignmentInteger); in CreateCacheIfNecessary()
3838 AllocAlignmentInteger* header = Internal::fastMallocMatchValidationValue(old_ptr); in CreateCacheIfNecessary()
3881 new_ptr = static_cast<AllocAlignmentInteger*>(new_ptr) + 1; in CreateCacheIfNecessary()
3886 …old_ptr = static_cast<AllocAlignmentInteger*>(old_ptr) + 1; // Set old_ptr back to the user pointe… in CreateCacheIfNecessary()