diff options
author | csilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2010-05-07 21:53:24 +0000 |
---|---|---|
committer | csilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2010-05-07 21:53:24 +0000 |
commit | d8c02761689ba909f474b85618f99ac6dfc9a168 (patch) | |
tree | 29963257de8de512aec28ad6340b1e9e21cef765 /src/span.h | |
parent | b0fe220d503eb23830e622939c2e14f084392d1e (diff) | |
download | gperftools-d8c02761689ba909f474b85618f99ac6dfc9a168.tar.gz |
* Update docs for heap-profiler fns (csilvers)
* In pprof, accept URLs without ports but with http:// (rsc)
* Refactor sizeclass handling in tcmalloc (bmaurer)
* Always log failed calls to FindAllocDetails (mec)
* Clarify comments for ProfilerStart* (malcolmr)
* Add #include guards to stacktrace_win32-inl.h (glider)
* Add ANNOTATE_ENABLE_RACE_DETECTION(enable) (kcc)
* Make a contentful NEWS file (csilvers)
* Fix addr2line --help (which pprof relies on) for windows (csilvers)
* Fixes a bug in tcmalloc's TLS callback on windows -static (wtc)
git-svn-id: http://gperftools.googlecode.com/svn/trunk@94 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
Diffstat (limited to 'src/span.h')
-rw-r--r-- | src/span.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 }; }; |