Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

WIP: Stackless issue #202: remove the STACKLESS_DECLARE_METHOD magic #202

Merged
merged 1 commit into from
Jan 12, 2019

Conversation

akruis
Copy link

@akruis akruis commented Jan 6, 2019

Now that we have C99 designated initializers, we don't need the
STACKLESS_DECLARE_METHOD magic any longer. Replacing it with explicit
initializers has several advantages:

  • faster startup time
  • less magic, code is simpler to reason about
  • no memory leak
  • no initialization race for sub-types between init_stackless_methods()
    and PyType_Ready().

Of this pull request only the commit 5c7a4dd and its children are relevant. This pull request must be merged only after pull requests #188 and #201 have been merged.

@akruis akruis added this to the v3.7.x-slp milestone Jan 6, 2019
@akruis akruis self-assigned this Jan 6, 2019
@akruis akruis mentioned this pull request Jan 6, 2019
Now that we have C99 designated initializers, we don't need the
STACKLESS_DECLARE_METHOD magic any longer. Replacing it with explicit
initializers has several advantages:
- faster startup time
- less magic, code is simpler to reason about
- no memory leak
- no initialization race for sub-types between init_stackless_methods()
  and PyType_Ready().
@akruis akruis merged commit b8a98a8 into stackless-dev:master-slp Jan 12, 2019
@akruis akruis deleted the slp-issue-202 branch January 12, 2019 13:43
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.

1 participant