[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.0.4-345-g7a66258

mysql vizuser noreply at mpich.org
Wed Jul 17 21:52:34 CDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  7a662589e5c0f219468fcc1e2e6f8a5af114336f (commit)
      from  d2cb66671016753efd22f3293ed8984c97b91441 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/7a662589e5c0f219468fcc1e2e6f8a5af114336f

commit 7a662589e5c0f219468fcc1e2e6f8a5af114336f
Author: Pavan Balaji <balaji at mcs.anl.gov>
Date:   Wed Jul 17 12:17:32 2013 -0500

    Better likely/unlikely hints to MPI.
    
    This covers a small part of ticket #1835.

diff --git a/src/include/mpihandlemem.h b/src/include/mpihandlemem.h
index 905deec..1847031 100644
--- a/src/include/mpihandlemem.h
+++ b/src/include/mpihandlemem.h
@@ -329,7 +329,7 @@ typedef OPA_int_t MPIU_Handle_ref_count;
 #define MPIU_Object_add_ref(objptr_)                           \
     do {                                                       \
         int handle_kind_ = HANDLE_GET_KIND((objptr_)->handle); \
-        if (handle_kind_ != HANDLE_KIND_BUILTIN) {             \
+        if (unlikely(handle_kind_ != HANDLE_KIND_BUILTIN)) {   \
             MPIU_Object_add_ref_always((objptr_));             \
         }                                                      \
         else {                                                                                                 \
@@ -344,7 +344,7 @@ typedef OPA_int_t MPIU_Handle_ref_count;
 #define MPIU_Object_release_ref(objptr_,inuse_ptr_)                  \
     do {                                                             \
         int handle_kind_ = HANDLE_GET_KIND((objptr_)->handle);       \
-        if (handle_kind_ != HANDLE_KIND_BUILTIN) {                   \
+        if (unlikely(handle_kind_ != HANDLE_KIND_BUILTIN)) {         \
             MPIU_Object_release_ref_always((objptr_), (inuse_ptr_)); \
         }                                                            \
         else {                                                       \

-----------------------------------------------------------------------

Summary of changes:
 src/include/mpihandlemem.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list