Granary / granary2

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

Coarse-grained locking / OS-locking on edges #63

Open pgoodman opened 10 years ago

pgoodman commented 10 years ago

It might be worth investigating using OS-provided locking mechanisms for each DirectEdge and IndirectEdge structure. In user space, this would probably look like a futex. In kernel space, this would be more challenging. I think the following is worth investigating:

Things to watch out for:

Potential opportunities:

pgoodman commented 10 years ago

One benefit of coarse-grained locks here is the removal of any possibility of duplicate targets in IndirectEdge structures due to races. Another benefit would be that we could look into upgrading IndirectEdge structures into hash tables.