Skip to content

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

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

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

Conversation

@thexai

@thexaithexai commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Windows: allow build ceval.c for UWP.

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

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 threadPython/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?

@thexaithexai changed the title gh-152433: Windows: ceval.c allow build in UWPgh-152433: Windows: allow build ceval.c for UWPJul 4, 2026
Sign up for freeto 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

@thexai@chris-eibl