There is a newer version of the record available.

Published April 1, 2026 | Version v0.7.0
Software Open

alternative-intelligence-cp/aria: v0.7.0 — Wild Memory Improvements

Authors/Creators

  • 1. Alternative Intelligence Liberation Platform

Description

Wild Memory Improvements

Per-Allocation Size Tracking

  • Hidden WildHeader (magic + alloc_size) before each allocation
  • aria_alloc_get_size() reads the allocation size from the header
  • Accurate aria_free/aria_realloc size accounting — no more imprecise stats

Guard Pages (--guard-pages)

  • mmap(PROT_NONE) sentinel pages placed before and after wild allocations
  • Buffer overflows/underflows trigger SIGSEGV immediately
  • Magic LSB distinguishes guard-page vs malloc mode at free time
  • Linux only

Wild Stats Dashboard (--wild-stats)

  • Formatted statistics box printed at program exit
  • Shows current/peak usage, active allocs, total frees, leak count, WildX stats, quota
  • Uses __attribute__((destructor)) for reliable atexit printing
  • Injected into main() via LLVM IR during compilation

Bug Fix

  • Fixed HEADER_MAGIC LSB bug: magic 0xA01A...BEEF had LSB=1, which broke the guard-page LSB masking in aria_free validation (frees were silently skipped). Changed to 0xA01A707000BEE0 (LSB=0).

Tests

  • New tests/wild_stress_v070.aria: 9 tests (rapid alloc/free, concurrent, interleaved, realloc grow/shrink, large/small allocations, aria_alloc_get_size)
  • All 6 existing test suites pass (regression clean)

Notes

  • Arena, Pool, and Slab allocators already existed from prior work — not new in this release
  • 582 insertions, 67 deletions across 5 files

Files

alternative-intelligence-cp/aria-v0.7.0.zip

Files (14.9 MB)

Name Size Download all
md5:a986dbf4b42cfdaba73aa1e707b1644a
14.9 MB Preview Download

Additional details

Related works