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

gh-123990: Good bye WITH_FREELISTS macro #124358

Merged
merged 7 commits into from
Sep 24, 2024
Merged

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Sep 23, 2024

Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

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

A few minor comments below, but otherwise LGTM

@@ -0,0 +1 @@
Remove ``WITH_FREELISTS`` macro and ``--with-freelists`` build configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

It's the --without-freelists configuration that got removed, right?

(The --with-freelists configuration was the default)

@@ -235,12 +235,10 @@ static void
float_dealloc(PyObject *op)
{
assert(PyFloat_Check(op));
#ifdef WITH_FREELISTS
if (PyFloat_CheckExact(op)) {
_PyFloat_ExactDealloc(op);
}
else
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can move the { up to the same line as the else now

@corona10 corona10 enabled auto-merge (squash) September 23, 2024 23:40
@corona10 corona10 merged commit ad7c778 into python:main Sep 24, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants