Skip to content

Conversation

@marcauberer
Copy link
Contributor

This allows to obtain the size of the allocated memory slab by the underlying ElfMapper.

Additional change:
Mark get_sym_addr as const, since it only performs a map lookup.

This allows to obtain the size of the allocated memory slab by the
underlying ElfMapper.
@T0b1-iOS
Copy link
Member

T0b1-iOS commented Feb 5, 2026

Can I ask what the motivation of this is devoid of any information where the code is mapped?

@marcauberer
Copy link
Contributor Author

@T0b1-iOS As you probably know, our use case is an in-memory database. We need to know the size of the allocation to be able to make decisions regarding caching and OOM prevention.
If you wish, I can extend my change so it is also possible to obtain the start address of the mapped allocation.

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.

2 participants