gecko-dev/mozglue/baseprofiler/public
Gerald Squelart f5ca1ba02d Bug 1567465 - Default BlockIndex used as empty value index before any valid entry - r=gregtatum
This is a similar concept as `nullptr` is to a pointer.

`BlocksRingBuffer` now skips the first byte in the buffer, so that no entries
start at 0 (the internal default `BlockIndex` value).
All `BlocksRingBuffer` public APIs handle this default value, and do nothing
and/or return Nothing (as if it pointed at an already-deleted entry).

Added tests for this, and for all BlockIndex operations.

Differential Revision: https://phabricator.services.mozilla.com/D38667

--HG--
extra : moz-landing-system : lando
2019-07-19 16:10:30 +00:00
..
BaseProfileJSONWriter.h Bug 1492121 - Enclosing BaseProfiler in namespace mozilla::baseprofiler - r=njn 2019-06-06 06:20:03 +00:00
BaseProfiler.h Backed out changeset 1ccaad832c1d (bug 1557564) for causing bug 1531789. 2019-07-10 13:19:27 +03:00
BaseProfilerCounts.h Bug 1492121 - Enclosing BaseProfiler in namespace mozilla::baseprofiler - r=njn 2019-06-06 06:20:03 +00:00
BaseProfilerMarkerPayload.h Bug 1492121 - Enclosing BaseProfiler in namespace mozilla::baseprofiler - r=njn 2019-06-06 06:20:03 +00:00
BaseProfilerSharedLibraries.h Bug 1492121 - All necessary changes to make baseprofiler build - r=njn 2019-06-06 06:17:49 +00:00
BaseProfilingCategory.h Bug 1492121 - Enclosing BaseProfiler in namespace mozilla::baseprofiler - r=njn 2019-06-06 06:20:03 +00:00
BaseProfilingStack.h Bug 1492121 - Enclosing BaseProfiler in namespace mozilla::baseprofiler - r=njn 2019-06-06 06:20:03 +00:00
BlocksRingBuffer.h Bug 1567465 - Default BlockIndex used as empty value index before any valid entry - r=gregtatum 2019-07-19 16:10:30 +00:00
ModuloBuffer.h Bug 1567461 - Ensure ModuloBuffer can be properly move-constructed - r=gregtatum 2019-07-20 00:13:59 +00:00
PowerOfTwo.h Bug 1552063 - PowerOfTwo, PowerOfTwoMask - r=gregtatum 2019-06-28 07:12:54 +00:00
leb128iterator.h Bug 1519636 - Ride along: Move to the unix CR type r=Ehsan 2019-07-16 07:34:18 +00:00