Skip to content

Conversation

@jserv
Copy link
Collaborator

@jserv jserv commented Aug 2, 2025

This commit migrates definition-use (DU) chain allocation from manual memory management to the arena allocator system. This change ensures consistent memory handling and prevents potential memory leaks.

The DU-chain memory is now automatically freed when INSN_ARENA is destroyed during global_release(), following shecc's established memory management patterns.

Close #160

Summary by Bito

This pull request improves memory management by replacing manual allocation with an arena allocator system, enhancing consistency and reducing memory leak risks. The DU-chain memory will be automatically released upon destruction of the INSN_ARENA, following best practices.

This commit migrates definition-use (DU) chain allocation from manual
memory management to the arena allocator system. This change ensures
consistent memory handling and prevents potential memory leaks.

The DU-chain memory is now automatically freed when INSN_ARENA is
destroyed during global_release(), following shecc's established memory
management patterns.

Close #160
@jserv jserv merged commit 7286ab7 into master Aug 2, 2025
12 checks passed
@jserv jserv deleted the du-chain-fix branch August 2, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shrink memory usage of definition-use chain after compilation

2 participants