Skip to content

gh-152433: Windows: ceval.c allow build in UWP#152689

Open
thexai wants to merge 1 commit into
python:mainfrom
thexai:uwp-ceval
Open

gh-152433: Windows: ceval.c allow build in UWP#152689
thexai wants to merge 1 commit into
python:mainfrom
thexai:uwp-ceval

Conversation

@thexai

@thexai thexai commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Windows: ceval.c allow build in UWP.

@thexai thexai requested a review from markshannon as a code owner June 30, 2026 14:10
@bedevere-app

bedevere-app Bot commented Jun 30, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Comment thread Python/ceval.c
GetCurrentThreadStackLimits(&low, &high);
*top = (uintptr_t)high;
ULONG guarantee = 0;
#ifdef MS_WINDOWS_DESKTOP

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hm, since SetThreadStackGuarantee isn't available for UWP, we can't use it here, but since

Sets the minimum size of the stack associated with the calling thread or fiber that will be available during any stack overflow exceptions. This is useful for handling stack overflow exceptions; the application can safely use the specified number of bytes during exception handling.

we'd lose that in case of UWP :(

I think this ok, cc @markshannon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants