Fixes a memory leak related to task dependencies as there was no call to free resources from implicit tasks
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
My last information is that the reformatting is still outstanding which means that clang-format will currently lead to inconsistencies.
runtime/src/kmp_taskdeps.cpp | ||
---|---|---|
130–151 | For example these two functions will be heavily reformatted for no actual benefit |
Adjusted output of clang-format to match the style of surrounded code - 4 space indent, function name at the start of line.
LGTM.
Clang-format can wait, as the clang-formatting of entire code base is in the works.
Segfault at the fery first line of kmp_dephash_free_entries() while trying to dereference a pointer passed as a parameter. The pointer to memory allocated by kmp_fast_allocate() became invalid after __kmp_free_fast_memory() was called.
runtime/src/kmp_runtime.c | ||
---|---|---|
5704 | See comment below (line 5757) | |
5757 | Calling this after __kmp_free_fast_memory( thread ); was called in line 5704 causes crash on sparselu_taskdep benchmark from kastors suite. |
See comment below (line 5757)