diff options
Diffstat (limited to 'third_party/tcmalloc/chromium/src/span.h')
-rw-r--r-- | third_party/tcmalloc/chromium/src/span.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/tcmalloc/chromium/src/span.h b/third_party/tcmalloc/chromium/src/span.h index ab9a796..b3483ca 100644 --- a/third_party/tcmalloc/chromium/src/span.h +++ b/third_party/tcmalloc/chromium/src/span.h @@ -60,6 +60,10 @@ struct Span { int value[64]; #endif + void* start_ptr() { + return reinterpret_cast<void*>(start << kPageShift); + } + // What freelist the span is on: IN_USE if on none, or normal or returned enum { IN_USE, ON_NORMAL_FREELIST, ON_RETURNED_FREELIST }; }; |