Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-109595: Add -Xcpu_count=<n> cmdline for container users#109667
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
71 commits Select commitHold shift + click to select a range
41be170
gh-109595: Add -Xcpu_count=<n> cmdline for container users
corona10f7a7428
Check style
corona107009bbe
Add help
corona10d1f91d8
Apply suggestions from code review
corona108c92ed6
Apply suggestions from code review
corona10c27bdfc
Check style
corona10b13e5ee
Address code review
corona1045fce16
Address code review
corona1049a48e4
Address code review
corona10829a8e8
Address code review
corona10cfb33a4
Fix test
corona1095a2173
Update NEWS.d
corona100394d1d
Address code review
corona10f4a3f01
Update
corona1060a28fe
Update
corona107e5595c
nit
corona108678012
Update
corona10cbc5484
Add PYTHONCPUCOUNT
corona104622b60
Add PYTHONCPUCOUNT
corona1050f0178
Apply suggestions from code review
corona105c3ac68
Update Python/initconfig.c
corona10a276bfd
Fix
corona109c582be
Update whatsnew
corona1035b952f
nit
corona10f04ea58
Check style
corona107ecf705
Fix docs
corona1018dcd44
Update doc
corona10b344f4f
nit
corona108069d21
Update
corona10c70bc82
Update
corona10c8abc29
Update
corona102ac6901
Address code review
corona10f0a3ebf
Address code review
corona1089d8bb2
Address Victor's suggestion
corona1066c617f
nit
corona104a72ed4
Address Erlend's review
corona100426e3e
fix
corona10ac5329b
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10e50e678
fix
corona1024fe0e4
Add space
corona1032843ed
Update os.py
corona10a954f1c
nit
corona103ab2bc4
Add test code
corona107231697
Update docs
corona10b18da0d
fix
corona103579fc4
Address code reivew
corona10134ed9e
Address code review
corona102bec7f4
Add test
corona109f7cb5e
fix
corona101217ab5
fix
corona1064da2f9
fix
corona1064c7329
fix
corona10cc54afb
Update
corona10ba421c7
Address code review
corona105f20bf6
Update NEWS.d
corona10c11789b
Update
corona10936c182
Update
corona102f0dc1c
Address code review
corona10a7b2c88
Rename to PYTHON_CPU_COUNT
corona10551c76d
Hidden overrided cpu count
corona1075021be
Use overridden
corona1057dd53b
Minor refactoring
corona103f9da50
Revert to PYTHONCPUCOUNT
corona1057e82c5
fix
corona10c37c8d0
Use PYTHON_CPU_COUNT
corona10c7726e5
Address Greg's review
corona10de8bf53
Address Greg's code review
corona10633914b
nit
corona1037fbdfe
Include multiprocessing in docs, reword.
gpsheada0cfb21
Merge remote-tracking branch 'upstream/main' into gh-109595
corona108daa3b7
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Address code review
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit49a48e4645f7a89ca8abde26fef71c188b183e09
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -636,6 +636,8 @@ config_check_consistency(const PyConfig *config) | ||
assert(config->_is_python_build >= 0); | ||
assert(config->safe_path >= 0); | ||
assert(config->int_max_str_digits >= 0); | ||
// cpu_count can be -1 if the user doesn't override it. | ||
assert(config->cpu_count != 0); | ||
corona10 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
// config->use_frozen_modules is initialized later | ||
// by _PyConfig_InitImportConfig(). | ||
#ifdef Py_STATS | ||
@@ -1074,6 +1076,7 @@ _PyConfig_AsDict(const PyConfig *config) | ||
SET_ITEM_INT(safe_path); | ||
SET_ITEM_INT(_is_python_build); | ||
SET_ITEM_INT(int_max_str_digits); | ||
SET_ITEM_INT(cpu_count); | ||
#ifdef Py_STATS | ||
SET_ITEM_INT(_pystats); | ||
#endif | ||
@@ -1384,6 +1387,7 @@ _PyConfig_FromDict(PyConfig *config, PyObject *dict) | ||
GET_UINT(safe_path); | ||
GET_UINT(_is_python_build); | ||
GET_INT(int_max_str_digits); | ||
GET_INT(cpu_count); | ||
#ifdef Py_STATS | ||
GET_UINT(_pystats); | ||
#endif | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.