forked from numba/numba
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit checks to all allocators in the NRT.
This patch: * Updates nrt.c to ensure that allocation routines return NULL if the allocation fails. cf. malloc. * Updates the nrt.context to add a check that wraps any allocation routine to check if the allocation failed and if so raises a MemoryError. * Fixes the runtime system allocators to catch invalid allocation requests and handle failed allocation requests. * Adds tests for the above. * Fixes a storage classifier issue in the C code in the nrt tests. * Adds the option `--debuginfo` to the `build_ext` command in setup.py, on unix systems this will ensure the DSOs Numba produces are built with debug symbols. Fixes numba#8015 (the segfault part).
- Loading branch information
1 parent
290a693
commit 8048c11
Showing
6 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters