Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jacquesm
on Oct 26, 2019
|
parent
|
context
|
favorite
| on:
Beating C with Futhark Running on GPU
For a slightly improved version, place a sentinel (say a 4 byte magic number) just before and after the allocated segment. Check on FREE_MEMORY if they're still there. Not perfect but pretty good as an early warning system.
jstimpfle
on Oct 26, 2019
[–]
Yes. Another possibility, add something with __FILE__ and __LINE__ if there are memory leaks to debug. (Never did that but it should help).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: