diff options
author | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-08 14:13:49 +0000 |
---|---|---|
committer | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-08 14:13:49 +0000 |
commit | df4a1bb5025e3bd3b5e1366c44148c2f0d58d57d (patch) | |
tree | e99be86994cc6e298f8d9dc2f3c832fa4d95755b /libitm/method-serial.cc | |
parent | 49dc2bdc682b9c0d7323fcdb9ad59f5aa17e1545 (diff) | |
download | gcc-df4a1bb5025e3bd3b5e1366c44148c2f0d58d57d.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/method-serial.cc')
-rw-r--r-- | libitm/method-serial.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libitm/method-serial.cc b/libitm/method-serial.cc index bf7982650ff..bdecd7b87b3 100644 --- a/libitm/method-serial.cc +++ b/libitm/method-serial.cc @@ -1,4 +1,4 @@ -/* Copyright (C) 2008, 2009, 2011 Free Software Foundation, Inc. +/* Copyright (C) 2008, 2009, 2011, 2012 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU Transactional Memory Library (libitm). @@ -107,8 +107,8 @@ class serial_dispatch : public abi_dispatch protected: static void log(const void *addr, size_t len) { - // TODO Ensure that this gets inlined: Use internal log interface and LTO. - GTM_LB(addr, len); + gtm_thread *tx = gtm_thr(); + tx->undolog.log(addr, len); } template <typename V> static V load(const V* addr, ls_modifier mod) |