-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memory Diagnostics: GC Bookkeeping (#84454)
* Add ISOSMemoryEnum and HandleTable enum * Update comment * Add GC Bookkeeping data to the dac - bookkeeping_covered_start is now compiled into all versions of the GC, instead of just with USE_REGIONS. This allows us to find the base address of the allocated memory for GC Bookkeeping. - Added dac enumeration of GC Bookkeeping. * Add assert * Add support for free gc regions * Don't require card_table_element_layout * Fix issue with naming in request * Remote DEFINE_MISSING_FIELD from dac We should never have missing fields in the dac. This is a leftover from previous code. * Whitespace fix * Break if we loop * Fix static_assert * Segment fixes When using segments, update bookkeeping_covered_start and card_table_info.size when we update the card table. * Defensive coding Check how many times we loop through memory to guard against heap corruption. * free_region fixes * Remove hardcoding of region list * Fix gcc warnings * Remove unneeded #define * Add freeable_soh_segment/freeable_uoh_segment * Add more card table checks * Fix field definition issue * Fix pointer issue * Fix compile issue * Rename bookkeeping_covered_start to bookkeeping_start * Update src/coreclr/debug/daccess/daccess.cpp Co-authored-by: Andrew Au <cshung@gmail.com> * Code review feedback * Remove unused parameter * Add heap number --------- Co-authored-by: Andrew Au <andrewau@microsoft.com> Co-authored-by: Andrew Au <cshung@gmail.com>
- Loading branch information
1 parent
1212946
commit add51b8
Showing
16 changed files
with
841 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.