Repository navigation
Commit 5f92e38
* bpo-44170: Fix UnicodeDecodeError with multibyte utf8 characters in ShareableList
* Round up the allocated size instead of rejecting the exact fit
Allocating one extra alignment block for a value whose encoded size is
a multiple of the alignment made a copy of the list wider than the
original. Round the size up instead, so that it is the same for the
same value, and keep allowing a value which fills the slot exactly:
rejecting it broke setting an 8-byte string in a slot of an integer.
---------
(cherry picked from commit 9348e13)
Co-authored-by: Jun <junnplus@gmail.com>
1 parent 9fc07bf commit 5f92e38
3 files changed
Lines changed: 23 additions & 15 deletions
File tree
- Lib
- multiprocessing
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
315 | | - | |
| 322 | + | |
316 | 323 | | |
317 | 324 | | |
318 | 325 | | |
| |||
353 | 360 | | |
354 | 361 | | |
355 | 362 | | |
356 | | - | |
| 363 | + | |
357 | 364 | | |
358 | 365 | | |
359 | 366 | | |
| |||
463 | 470 | | |
464 | 471 | | |
465 | 472 | | |
466 | | - | |
467 | | - | |
| 473 | + | |
468 | 474 | | |
469 | 475 | | |
470 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4688 | 4688 | | |
4689 | 4689 | | |
4690 | 4690 | | |
4691 | | - | |
| 4691 | + | |
4692 | 4692 | | |
4693 | 4693 | | |
4694 | 4694 | | |
| |||
4698 | 4698 | | |
4699 | 4699 | | |
4700 | 4700 | | |
4701 | | - | |
| 4701 | + | |
4702 | 4702 | | |
4703 | 4703 | | |
4704 | 4704 | | |
4705 | | - | |
| 4705 | + | |
4706 | 4706 | | |
4707 | 4707 | | |
4708 | 4708 | | |
4709 | 4709 | | |
4710 | 4710 | | |
4711 | 4711 | | |
4712 | 4712 | | |
4713 | | - | |
| 4713 | + | |
4714 | 4714 | | |
4715 | 4715 | | |
4716 | | - | |
| 4716 | + | |
4717 | 4717 | | |
4718 | 4718 | | |
4719 | 4719 | | |
| |||
4725 | 4725 | | |
4726 | 4726 | | |
4727 | 4727 | | |
4728 | | - | |
| 4728 | + | |
| 4729 | + | |
4729 | 4730 | | |
4730 | 4731 | | |
4731 | 4732 | | |
4732 | 4733 | | |
4733 | | - | |
| 4734 | + | |
4734 | 4735 | | |
4735 | 4736 | | |
4736 | 4737 | | |
4737 | 4738 | | |
4738 | 4739 | | |
4739 | 4740 | | |
4740 | 4741 | | |
4741 | | - | |
| 4742 | + | |
4742 | 4743 | | |
4743 | 4744 | | |
4744 | 4745 | | |
4745 | 4746 | | |
4746 | | - | |
4747 | | - | |
| 4747 | + | |
| 4748 | + | |
4748 | 4749 | | |
4749 | 4750 | | |
4750 | 4751 | | |
4751 | | - | |
| 4752 | + | |
4752 | 4753 | | |
4753 | 4754 | | |
4754 | 4755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments