Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:small_intsCopy head branch name to clipboard
Nov 21, 2019
Merged

bpo-38858: Allocate small integers on the heap#17301
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:small_intsCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Nov 20, 2019

Copy link
Copy Markdown
Member

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.
Comment thread Objects/longobject.c
@pablogsal pablogsal assigned pablogsal and unassigned pablogsal Nov 20, 2019
@vstinner

Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.