Comment on GCC 4.7 adds transactional memory extensions for C/C++Comments−CGamesPlay14yThis is pretty cool. Is it done naively and using one global lock, or is it be more intelligent? Can GCC identify what memory location require locking for a given transaction, and lock just those? What is the granularity?−roxtar14yIt's smarter than a global lock (come on!). I would suggest reading the article which describes the implementation [1].[1]: http://www.velox-project.eu/velox-transactional-memory-stack (courtesy scott_s)
Comments
This is pretty cool. Is it done naively and using one global lock, or is it be more intelligent? Can GCC identify what memory location require locking for a given transaction, and lock just those? What is the granularity?
It's smarter than a global lock (come on!). I would suggest reading the article which describes the implementation [1].
[1]: http://www.velox-project.eu/velox-transactional-memory-stack (courtesy scott_s)