https://github.com/halide/Halide
Revision c254043787ee41299796ebf2b16c37ca80666713 authored by Andrew Adams on 05 August 2023, 18:52:46 UTC, committed by GitHub on 05 August 2023, 18:52:46 UTC
* Fix leaks caused by self-referential parameter constraints

* Add comment

* Add missing overrides

* Fix reported leaks in memoize test

by explicitly releasing the shared runtime at the end of the test

* Use const refs for non-mutated args

* Hopefully fix for windows

* Fix for 32-bit pointers

* Don't use _aligned_malloc

It requires _aligned_free, which the runtime aint gonna do

* Fix other memoize test

* Use runtime built-in malloc/free

On windows mixing and matching mallocs and frees doesn't work well.

* Fix comment

---------

Co-authored-by: Steven Johnson <srj@google.com>
1 parent f39576f
History
Tip revision: c254043787ee41299796ebf2b16c37ca80666713 authored by Andrew Adams on 05 August 2023, 18:52:46 UTC
Fix leaks in test/correctness/memoize.cpp (#7705)
Tip revision: c254043
File Mode Size
.github
apps
cmake
dependencies
doc
packaging
python_bindings
src
test
tools
tutorial
util
.clang-format -rw-r--r-- 1.4 KB
.clang-format-ignore -rw-r--r-- 375 bytes
.clang-tidy -rw-r--r-- 6.9 KB
.gitattributes -rw-r--r-- 342 bytes
.gitignore -rw-r--r-- 4.9 KB
.gitmodules -rw-r--r-- 0 bytes
CMakeLists.txt -rw-r--r-- 6.6 KB
CMakePresets.json -rw-r--r-- 6.8 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.5 KB
LICENSE.txt -rw-r--r-- 14.4 KB
MANIFEST.in -rw-r--r-- 159 bytes
Makefile -rw-r--r-- 105.4 KB
README.md -rw-r--r-- 16.5 KB
README_cmake.md -rw-r--r-- 77.9 KB
README_fuzz_testing.md -rw-r--r-- 3.9 KB
README_python.md -rw-r--r-- 31.8 KB
README_rungen.md -rw-r--r-- 12.1 KB
README_vulkan.md -rw-r--r-- 11.4 KB
README_webassembly.md -rw-r--r-- 10.5 KB
README_webgpu.md -rw-r--r-- 4.4 KB
pyproject.toml -rw-r--r-- 196 bytes
requirements.txt -rw-r--r-- 130 bytes
run-clang-format.sh -rwxr-xr-x 1.4 KB
run-clang-tidy.sh -rwxr-xr-x 3.6 KB
setup.py -rw-r--r-- 1.2 KB

README.md

back to top