Skip to content

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