Commit c275be5
authored
When Python is compiled in debug mode, PyMem_Malloc() uses debug
hooks, but it also uses pymalloc allocator instead of malloc().
Problem: pymalloc is not thread-safe, whereas PyMem_Malloc() is
thread-safe in release mode (it's a thin wrapper to malloc() in this
case).
Modify the debug hook to use malloc() for PyMem_Malloc().
1 parent dfd4a1d commit c275be5
File tree
2 files changed
+54
-6
lines changed- Misc/NEWS.d/next/Core and Builtins
- Objects
2 files changed
+54
-6
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1416 | 1448 | | |
1417 | 1449 | | |
1418 | 1450 | | |
| |||
1479 | 1511 | | |
1480 | 1512 | | |
1481 | 1513 | | |
1482 | | - | |
| 1514 | + | |
1483 | 1515 | | |
1484 | 1516 | | |
1485 | 1517 | | |
| |||
1491 | 1523 | | |
1492 | 1524 | | |
1493 | 1525 | | |
1494 | | - | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
1495 | 1532 | | |
1496 | 1533 | | |
1497 | 1534 | | |
1498 | | - | |
| 1535 | + | |
1499 | 1536 | | |
1500 | | - | |
| 1537 | + | |
1501 | 1538 | | |
1502 | 1539 | | |
1503 | 1540 | | |
| |||
1529 | 1566 | | |
1530 | 1567 | | |
1531 | 1568 | | |
1532 | | - | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1533 | 1575 | | |
1534 | 1576 | | |
1535 | 1577 | | |
| |||
1561 | 1603 | | |
1562 | 1604 | | |
1563 | 1605 | | |
1564 | | - | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1565 | 1612 | | |
1566 | 1613 | | |
1567 | 1614 | | |
| |||
0 commit comments