From a5ac0162bcc2ba53e25559882679bc7dc953446a Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sat, 10 Oct 2026 10:01:24 +0000 Subject: [PATCH] Plan: a marker in each heap block's header --- diff --git a/PLAN.md b/PLAN.md index 1aaf7c2..2f287b0 100644 --- a/PLAN.md +++ b/PLAN.md @@ -108,8 +108,10 @@ `XEvent` as an array of words through pointer conversions. - [ ] 12. `F32`: arithmetic, conversions, calls; real literals become untyped constants that take `F32` or `F64`. -- [ ] 13. A thread-safe `lib/Heap.jed`, and its bad sizes refused; an - example with threads from `pthread_create`. +- [ ] 13. A thread-safe `lib/Heap.jed`: its bad sizes refused, and a + marker in each block's header so that freeing a block twice, or + one it never gave out, stops the program. An example with + threads from `pthread_create`. - [ ] 14. Line numbers for gdb: `.debug_line`, with the least of `.debug_info` and `.debug_abbrev` that gdb needs.