diff options
author | Andrew Au <andrewau@microsoft.com> | 2021-06-08 00:03:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 00:03:16 +0300 |
commit | 1ec8a0a5c716705dc97c3bb27b01f17ce16ed0e7 (patch) | |
tree | 9077553566d9d5f92e774799a717f4827ea00641 /src/coreclr/vm | |
parent | ad41de40967d2290e28d000a0804619430da1e9c (diff) |
Implement descr_generations_to_profiler for regions (#53706)
Diffstat (limited to 'src/coreclr/vm')
-rw-r--r-- | src/coreclr/vm/proftoeeinterfaceimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/vm/proftoeeinterfaceimpl.cpp b/src/coreclr/vm/proftoeeinterfaceimpl.cpp index deaafb66d1b..94161378380 100644 --- a/src/coreclr/vm/proftoeeinterfaceimpl.cpp +++ b/src/coreclr/vm/proftoeeinterfaceimpl.cpp @@ -843,9 +843,9 @@ void __stdcall UpdateGenerationBounds() RETURN; newGenerationTable->count = 0; newGenerationTable->capacity = GenerationTable::defaultCapacity; - // if there is already a current table, use its count as a guess for the capacity + // if there is already a current table, use its capacity as a guess for the capacity if (s_currentGenerationTable != NULL) - newGenerationTable->capacity = s_currentGenerationTable->count; + newGenerationTable->capacity = s_currentGenerationTable->capacity; newGenerationTable->prev = NULL; newGenerationTable->genDescTable = new (nothrow) GenerationDesc[newGenerationTable->capacity]; if (newGenerationTable->genDescTable == NULL) |