Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* elf/dl-open.c (dl_open_worker): Add branch prediction.
  • Loading branch information
Ulrich Drepper committed Jul 31, 2006
1 parent d2de41f commit 13669f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -1,5 +1,7 @@
2006-07-31 Ulrich Drepper <drepper@redhat.com>

* elf/dl-open.c (dl_open_worker): Add branch prediction.

* nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
the backend NSS module. If backend setgrent call failed, don't have
internal_setgrent fail. Just remember this until it is needed.
Expand Down
4 changes: 2 additions & 2 deletions elf/dl-open.c
@@ -1,5 +1,5 @@
/* Load a shared object at runtime, relocate it, and run its initializer.
Copyright (C) 1996-2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1996-2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -341,7 +341,7 @@ dl_open_worker (void *a)
if (! l->l_real->l_relocated)
{
#ifdef SHARED
if (GLRO(dl_profile) != NULL)
if (__builtin_expect (GLRO(dl_profile) != NULL, 0))
{
/* If this here is the shared object which we want to profile
make sure the profile is started. We can find out whether
Expand Down

0 comments on commit 13669f2

Please sign in to comment.