Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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
corona10 merged 71 commits intopython:mainfromcorona10:gh-109595
Oct 10, 2023
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
corona10Sep 21, 2023
f7a7428
Check style
corona10Sep 21, 2023
7009bbe
Add help
corona10Sep 21, 2023
d1f91d8
Apply suggestions from code review
corona10Sep 21, 2023
8c92ed6
Apply suggestions from code review
corona10Sep 21, 2023
c27bdfc
Check style
corona10Sep 21, 2023
b13e5ee
Address code review
corona10Sep 21, 2023
45fce16
Address code review
corona10Sep 21, 2023
49a48e4
Address code review
corona10Sep 21, 2023
829a8e8
Address code review
corona10Sep 21, 2023
cfb33a4
Fix test
corona10Sep 21, 2023
95a2173
Update NEWS.d
corona10Sep 21, 2023
0394d1d
Address code review
corona10Sep 21, 2023
f4a3f01
Update
corona10Sep 21, 2023
60a28fe
Update
corona10Sep 21, 2023
7e5595c
nit
corona10Sep 21, 2023
8678012
Update
corona10Sep 21, 2023
cbc5484
Add PYTHONCPUCOUNT
corona10Sep 21, 2023
4622b60
Add PYTHONCPUCOUNT
corona10Sep 21, 2023
50f0178
Apply suggestions from code review
corona10Sep 21, 2023
5c3ac68
Update Python/initconfig.c
corona10Sep 21, 2023
a276bfd
Fix
corona10Sep 21, 2023
9c582be
Update whatsnew
corona10Sep 21, 2023
35b952f
nit
corona10Sep 21, 2023
f04ea58
Check style
corona10Sep 21, 2023
7ecf705
Fix docs
corona10Sep 21, 2023
18dcd44
Update doc
corona10Sep 21, 2023
b344f4f
nit
corona10Sep 21, 2023
8069d21
Update
corona10Sep 21, 2023
c70bc82
Update
corona10Sep 21, 2023
c8abc29
Update
corona10Sep 21, 2023
2ac6901
Address code review
corona10Sep 21, 2023
f0a3ebf
Address code review
corona10Sep 21, 2023
89d8bb2
Address Victor's suggestion
corona10Sep 24, 2023
66c617f
nit
corona10Sep 24, 2023
4a72ed4
Address Erlend's review
corona10Sep 26, 2023
0426e3e
fix
corona10Sep 26, 2023
ac5329b
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10Sep 30, 2023
e50e678
fix
corona10Sep 30, 2023
24fe0e4
Add space
corona10Sep 30, 2023
32843ed
Update os.py
corona10Sep 30, 2023
a954f1c
nit
corona10Sep 30, 2023
3ab2bc4
Add test code
corona10Sep 30, 2023
7231697
Update docs
corona10Sep 30, 2023
b18da0d
fix
corona10Oct 1, 2023
3579fc4
Address code reivew
corona10Oct 1, 2023
134ed9e
Address code review
corona10Oct 1, 2023
2bec7f4
Add test
corona10Oct 1, 2023
9f7cb5e
fix
corona10Oct 1, 2023
1217ab5
fix
corona10Oct 1, 2023
64da2f9
fix
corona10Oct 1, 2023
64c7329
fix
corona10Oct 1, 2023
cc54afb
Update
corona10Oct 1, 2023
ba421c7
Address code review
corona10Oct 1, 2023
5f20bf6
Update NEWS.d
corona10Oct 1, 2023
c11789b
Update
corona10Oct 1, 2023
936c182
Update
corona10Oct 1, 2023
2f0dc1c
Address code review
corona10Oct 1, 2023
a7b2c88
Rename to PYTHON_CPU_COUNT
corona10Oct 1, 2023
551c76d
Hidden overrided cpu count
corona10Oct 2, 2023
75021be
Use overridden
corona10Oct 2, 2023
57dd53b
Minor refactoring
corona10Oct 2, 2023
3f9da50
Revert to PYTHONCPUCOUNT
corona10Oct 2, 2023
57e82c5
fix
corona10Oct 2, 2023
c37c8d0
Use PYTHON_CPU_COUNT
corona10Oct 3, 2023
c7726e5
Address Greg's review
corona10Oct 3, 2023
de8bf53
Address Greg's code review
corona10Oct 3, 2023
633914b
nit
corona10Oct 3, 2023
37fbdfe
Include multiprocessing in docs, reword.
gpsheadOct 3, 2023
a0cfb21
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10Oct 3, 2023
8daa3b7
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10Oct 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Address code review
  • Loading branch information
@corona10
corona10 committedSep 21, 2023
commit49a48e4645f7a89ca8abde26fef71c188b183e09
4 changes: 4 additions & 0 deletionsPython/initconfig.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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);
// config->use_frozen_modules is initialized later
// by _PyConfig_InitImportConfig().
#ifdef Py_STATS
Expand DownExpand Up@@ -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
Expand DownExpand Up@@ -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
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp