Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set s_naiveThreshold to const in the release build. #96538

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

kzrnm
Copy link
Contributor

@kzrnm kzrnm commented Jan 5, 2024

Another source uses the following idiom. I have adapted it.

#if DEBUG
        // Mutable for unit testing...
        private static
#else
        private const
#endif

#if DEBUG
// Mutable for unit testing...
internal static
#else
internal const
#endif
int StackAllocThreshold = 64;

#if DEBUG
// Mutable for unit testing...
private static
#else
private const
#endif
int SquareThreshold = 32;

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 5, 2024
@ghost
Copy link

ghost commented Jan 5, 2024

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

Issue Details

Another source uses the following idiom. I have adapted it.

#if DEBUG
        // Mutable for unit testing...
        private static
#else
        private const
#endif

#if DEBUG
// Mutable for unit testing...
internal static
#else
internal const
#endif
int StackAllocThreshold = 64;

#if DEBUG
// Mutable for unit testing...
private static
#else
private const
#endif
int SquareThreshold = 32;

Author: kzrnm
Assignees: -
Labels:

area-System.Numerics, community-contribution

Milestone: -

@tannergooding tannergooding merged commit 766716b into dotnet:main Jan 10, 2024
111 checks passed
@kzrnm kzrnm deleted the fix/BigIntegerDebugConst branch January 11, 2024 14:13
tmds pushed a commit to tmds/runtime that referenced this pull request Jan 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Numerics community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants