libitm: Optimize undo log.
authorTorvald Riegel <triegel@redhat.com>
Sun, 8 Jan 2012 14:13:49 +0000 (14:13 +0000)
committerTorvald Riegel <torvald@gcc.gnu.org>
Sun, 8 Jan 2012 14:13:49 +0000 (14:13 +0000)
commit11f30bb0e4bf666229b6b236cd3e4ed1de13283a
treee99be86994cc6e298f8d9dc2f3c832fa4d95755b
parente478624f6c8d5ff2d43e5159d4435cbd75e4d5a7
libitm: Optimize undo log.

libitm/
* local.cc (GTM_LB): Use GTM::gtm_undolog.
(GTM::gtm_thread::drop_references_undolog): Remove.
(GTM::gtm_thread::commit_undolog,
GTM::gtm_thread::rollback_undolog): Move to ...
* libitm_i.h (GTM::gtm_undolog): ...here. New.
(GTM::gtm_undolog_entry): Remove.
(GTM::gtm_thread): Adapt.
* beginend.cc (GTM::gtm_thread::rollback): Adapt.
(GTM::gtm_thread::trycommit): Adapt.
* method-serial.cc (serial_dispatch::log): Adapt.
* method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
(gl_wt_dispatch::store): Fix likely/unlikely.
* containers.h (GTM::vector::resize): Add additional_capacity
parameter and handle it.
(GTM::vector::resize_noinline): New/adapt.
(GTM::vector::push): New.

From-SVN: r182992
libitm/ChangeLog
libitm/beginend.cc
libitm/containers.h
libitm/libitm_i.h
libitm/local.cc
libitm/method-gl.cc
libitm/method-serial.cc