You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Regions] Avoid using allocation_started for USE_REGIONS #2483
When USE_REGIONS is enabled, we don't have the field allocation_started defined on the generation class.
classgeneration
{
public:// Don't move these first two fields without adjusting the references// from the __asm in jitinterface.cpp.
alloc_context allocation_context;
PTR_heap_segment start_segment;
#ifndef USE_REGIONS
uint8_t* allocation_start;
#endif//!USE_REGIONS
...
}
Sadly, it is still defined on DacpGenerationData as the struct cannot be changed. After dotnet/runtime#56796 is merged, the field should always be 0.
Any code that depends on the value is wrong if the debuggee is run with USE_REGIONS enabled. Therefore we need to review all usage and see what we can do to fix them.
I'm closing this one as completed. All code within SOS and ClrMD only use allocation_start when dealing with segments (i.e. !defined(USE_REGIONS)). There's still a little code left in C++ SOS which has some GC logic, but that all will be removed when I'm done with my current work, but as of a few checkins ago we no longer incorrectly use allocation_start.
Activity
leculver commentedon Apr 7, 2023
I'm closing this one as completed. All code within SOS and ClrMD only use allocation_start when dealing with segments (i.e.
!defined(USE_REGIONS)). There's still a little code left in C++ SOS which has some GC logic, but that all will be removed when I'm done with my current work, but as of a few checkins ago we no longer incorrectly use allocation_start.