Commit 5ae3083
committed
Use ZendMM for libgmp
As is, ext/gmp uses the default memory allocator of the underlying
libgmp; this allocator is fallible, but contrary to ZendMM, it
`abort()`s without giving us an opportunity to do a cleaner shutdown.
Furthermore, the libgmp allocator obviously doesn't heed memory_limit.
Thus we install wrappers of the ZendMM API as libgmp allocator.1 parent a00c734 commit 5ae3083
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
524 | 539 | | |
525 | 540 | | |
526 | 541 | | |
| |||
551 | 566 | | |
552 | 567 | | |
553 | 568 | | |
| 569 | + | |
| 570 | + | |
554 | 571 | | |
555 | 572 | | |
556 | 573 | | |
| |||
0 commit comments