Skip to content

v1.1.6

Latest

Choose a tag to compare

@aajll aajll released this 21 Mar 17:49
· 8 commits to master since this release

Changelog

Features:

  • Added _Static_assert to enforce macro constraints at compile time
  • Refactored meson build system to use standard project template style

Bug Fixes:

  • Added tombstone markers (LRU_CACHE_HASH_TOMBSTONE = -2) to maintain linear probing chain integrity after eviction, preventing valid entries from becoming invisible when earlier slots are deleted
  • Fixed lru_cache_put algorithm and cleanup behaviors
  • Return false when eviction probe fails to find hash slot, preventing stale entry corruption
  • Clamp capacity to max entries instead of silently rejecting oversized values
  • Fixed MISRA violation by removing const from lru_cache_get parameter
  • Ensured hash lookup test function is within the lookup strategy define guard to prevent compile-time warning for unused function

Documentation:

  • Updated AGENTS.md with a section for validation requirements
  • Corrected docstring indentation