Commit 1eb8e0d
config: enabling madvise syscalls for user mode deallocations (v6.18)
This config change includes madvise.o in the final build image, enabling madvise syscalls. This is necessary because MiMalloc (the allocator for OpenHCL) uses madvise syscalls to deallocate memory. Without this change, madvise is excluded from the final build image resulting in the syscalls for deallocating memory from the user mode being unrecognized by the kernel. This results in a major memory leak where no user mode process is able to free physical memory. OpenHCL builds with the kernel with this fix indicate steady memory usage in a reproduction scenario that would otherwise expose the memory leak.
Duplicate of PR 133 for kernel version 6.181 parent c81a260 commit 1eb8e0d
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
0 commit comments