Fix a profile sampling race.

Fix a profile sampling race that was due to preparing to sample, yet
doing nothing to assure that the context remains valid until the stats
are updated.

These regressions were caused by
602c8e0971 (Implement per thread heap
profiling.), which did not make it into any releases prior to these
fixes.
This commit is contained in:
Jason Evans
2014-09-09 19:37:26 -07:00
parent 6fd53da030
commit 6e73dc194e
4 changed files with 109 additions and 73 deletions

View File

@@ -292,6 +292,7 @@ p2rz
pages_purge
pow2_ceil
prof_alloc_prep
prof_alloc_rollback
prof_backtrace
prof_boot0
prof_boot1