Granary / granary2

Dynamic binary translation framework for instrumenting x86-64 user space Linux programs
MIT License
39 stars 5 forks source link

Code cache is dynamically allocated with module_alloc #74

Closed pgoodman closed 9 years ago

pgoodman commented 9 years ago

I think that the code cache should not be dynamically allocated with module_alloc (or module_alloc_update_bounds), because then it raises concerns about when / how to free that space. It is also redundant right now given that the code cache is a build-time fixed size. I think a nicer solution (for now) would be to statically allocate a number of rwx pages for the code cache. Then it's really part of Granary.

pgoodman commented 9 years ago

This is resolved.