Commit cde8038
Handle errors in jl_image_unpack_zstd better, especially on Windows (#59773)
Handle a failed allocation in `jl_image_unpack_zstd` better:
- On Windows, if `GetLargePageMinimum()` reports that large pages are
unsupported, don't try to allocate with `MEM_LARGE_PAGES`.
- If they are supported but the large page allocation fails, try again
without the option.
- On all platforms, provide a better error message when the allocation
fails.
Ported from #59340.1 parent b406292 commit cde8038
1 file changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3661 | 3661 | | |
3662 | 3662 | | |
3663 | 3663 | | |
| 3664 | + | |
3664 | 3665 | | |
3665 | 3666 | | |
3666 | | - | |
| 3667 | + | |
| 3668 | + | |
3667 | 3669 | | |
3668 | 3670 | | |
3669 | 3671 | | |
3670 | 3672 | | |
3671 | | - | |
| 3673 | + | |
| 3674 | + | |
3672 | 3675 | | |
3673 | 3676 | | |
3674 | 3677 | | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
3675 | 3690 | | |
3676 | | - | |
3677 | | - | |
| 3691 | + | |
3678 | 3692 | | |
3679 | | - | |
3680 | | - | |
| 3693 | + | |
| 3694 | + | |
3681 | 3695 | | |
3682 | 3696 | | |
3683 | 3697 | | |
| |||
0 commit comments