Skip to content

bpo-38858: Allocate small integers on the heap #17301

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

Merged
merged 1 commit into from
Nov 21, 2019
Merged

bpo-38858: Allocate small integers on the heap #17301

merged 1 commit into from
Nov 21, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 20, 2019

Allocate small Python integers (small_ints of longobject.c) on the
heap, rather than using static objects.

https://bugs.python.org/issue38858

Allocate small Python integers (small_ints of longobject.c) on the
heap, rather than using static objects.
@pablogsal pablogsal assigned pablogsal and unassigned pablogsal Nov 20, 2019
@vstinner
Copy link
Member Author

This change prepares the code to have small integers per interpreter (to support subinterpreters), rather than sharing these singletons between multiple interpreters.

@vstinner vstinner merged commit 5dcc06f into python:master Nov 21, 2019
@vstinner vstinner deleted the small_ints branch November 21, 2019 07:52
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
Allocate small Python integers (small_ints of longobject.c) on the
heap, rather than using static objects.
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Allocate small Python integers (small_ints of longobject.c) on the
heap, rather than using static objects.
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.

4 participants