Skip to content

Conversation

@bbernhar
Copy link
Contributor

@bbernhar bbernhar commented Sep 9, 2022

  • Moves backend leak detection enabling to ALLOCATOR_FLAG_NEVER_LEAK_MEMORY.
  • Moves front-end leak detection checks behind existing build flag, GPGMM_ENABLE_ALLOCATOR_LEAK_CHECKS.
  • Disables GPGMM_ENABLE_ALLOCATOR_LEAK_CHECKS by default for GN builds (same as CMake).

This change fixes an issue of front-end checks conflicting with the backend checks since the same build flag was used to enable both and the backend checks could not report leaks first. Since memory leaking can now be checked by front-end tests (via MemoryAllocator::GetInfo), always checking is not needed by default.

@bbernhar bbernhar enabled auto-merge (squash) September 9, 2022 23:12
@bbernhar bbernhar added the bug Something isn't working label Sep 9, 2022
@github-actions github-actions bot added Build Changes to build system. D3D12 DirectX 12 Backend Change Frontend Changes to common or GPU API agnostic code. Test Changes in tests. labels Sep 9, 2022
* Moves backend leak detection enabling to ALLOCATOR_FLAG_NEVER_LEAK_MEMORY.
* Moves front-end leak detection checks to build flag.
* Disables front-end leaks checks via GPGMM_ENABLE_ALLOCATOR_LEAK_CHECKS.

This change prevents front-end checks from conflicting with the backend checks since the same build flag was used to enable both and the backend checks could not report leaks first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Build Changes to build system. D3D12 DirectX 12 Backend Change Frontend Changes to common or GPU API agnostic code. Test Changes in tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants