News for hackers. Stuff that matters.
Re:Beating C with Futhark Running on GPU by jacquesm on Friday October 25, 2019 @09:50PM (#21361102)
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.
Re:Beating C with Futhark Running on GPU by jstimpfle on Saturday October 26, 2019 @04:15AM (#21362459)
Yes. Another possibility, add something with __FILE__ and __LINE__ if there are memory leaks to debug. (Never did that but it should help).