Skip to content

Expand central_freelist_fuzz and FakeStaticForwarder to exercise additional CentralFreeList paths and invariants: - #965

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_982895325
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_982895325

Conversation

@copybara-service

Copy link
Copy Markdown

Expand central_freelist_fuzz and FakeStaticForwarder to exercise additional CentralFreeList paths and invariants:

  • Verify GetSpanStats consistency (num_live_spans() == num_spans_requested - num_spans_returned, obj_capacity == num_live_spans() * objects_per_span, length() + live_objects == obj_capacity) after every InsertRange and RemoveRange.
  • Exercise ReleaseSpans (ReleaseToPageHeap when hooks_enabled is true) and verify span release accounting.
  • Exercise set_PrioritizeSpans and PrintSpanUtilStats / PrintSpanUtilStatsInPbtxt.

…additional `CentralFreeList` paths and invariants:

- Verify `GetSpanStats` consistency (`num_live_spans() == num_spans_requested - num_spans_returned`, `obj_capacity == num_live_spans() * objects_per_span`, `length() + live_objects == obj_capacity`) after every `InsertRange` and `RemoveRange`.
- Exercise `ReleaseSpans` (`ReleaseToPageHeap` when `hooks_enabled` is true) and verify span release accounting.
- Exercise `set_PrioritizeSpans` and `PrintSpanUtilStats` / `PrintSpanUtilStatsInPbtxt`.

PiperOrigin-RevId: 982895325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant