LWN.net Logo

Transactional memory for GCC 4.7.0

Transactional memory for GCC 4.7.0

Posted Nov 10, 2011 2:49 UTC (Thu) by josh (subscriber, #17465)
Parent article: Transactional memory for GCC 4.7.0

This seems like the kind of thing better implemented as a GCC plugin, specific to whatever transactional system the user wants to use.


(Log in to post comments)

Transactional memory for GCC 4.7.0

Posted Nov 10, 2011 15:53 UTC (Thu) by tvld (subscriber, #59052) [Link]

I don't think so. Having several sets of language-level constructs for transactions does not seem to be useful. If you want to just change to a different implementation of these transactions, you can already do so by using another library instead of libitm.

If you're thinking about interfacing with other transactional systems (so, for other resources besides the application's address space), then you should look at the transaction_wrap function attribute, with which you can declare transactional wrappers for functions (e.g., library functions). However, this isn't yet part of any specification.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds