summaryrefslogtreecommitdiff
path: root/src/span.h
diff options
context:
space:
mode:
authorcsilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2010-05-07 21:53:24 +0000
committercsilvers <csilvers@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2010-05-07 21:53:24 +0000
commitd8c02761689ba909f474b85618f99ac6dfc9a168 (patch)
tree29963257de8de512aec28ad6340b1e9e21cef765 /src/span.h
parentb0fe220d503eb23830e622939c2e14f084392d1e (diff)
downloadgperftools-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/span.h b/src/span.h
index ab9a796..b3483ca 100644
--- a/src/span.h
+++ b/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 };
};