Skip to content

add GC_CONFIG_DRIVEN define to standalone GC builds#119535

Merged
max-charlamb merged 1 commit intodotnet:mainfrom
max-charlamb:gc-config-driven
Sep 10, 2025
Merged

add GC_CONFIG_DRIVEN define to standalone GC builds#119535
max-charlamb merged 1 commit intodotnet:mainfrom
max-charlamb:gc-config-driven

Conversation

@max-charlamb
Copy link
Member

@max-charlamb max-charlamb commented Sep 10, 2025

Found while working on #119324. GC_CONFIG_DRIVEN is always defined in the built-in GC, but not in standalone builds.

Logic in the DAC checks this define. However, the define has different values in the GC and DAC which leads to unintended behavior.

Discussed with @jkotas and agreed that GC_CONFIG_DRIVEN not being defined in the standalone GC builds is most likely an oversight and it can always be defined.

Planning to add a test in the SOS test suite which invokes GC APIs on standalone GCs.

Copilot AI review requested due to automatic review settings September 10, 2025 13:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the GC_CONFIG_DRIVEN define to standalone GC builds to align with built-in GC configuration. The change addresses a discrepancy where DAC (Debug Access Component) logic expects this define to be present, but standalone GC builds were missing it, leading to inconsistent behavior between built-in and standalone GC implementations.

Key Changes

  • Adds GC_CONFIG_DRIVEN definition to standalone GC CMake configuration

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

@max-charlamb max-charlamb merged commit f1c8b83 into dotnet:main Sep 10, 2025
100 checks passed
@max-charlamb max-charlamb deleted the gc-config-driven branch September 10, 2025 17:24
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants