libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] Is there a bug fixed in performance optimisations for


From: 马思阳
Subject: [Libunwind-devel] Is there a bug fixed in performance optimisations for fast trace?
Date: Mon, 5 Dec 2011 19:19:33 +0800

Hi everyone,
I recently found a confusion in a commit of src/x86_64/Ginit.c.
URL:http://git.savannah.gnu.org/cgit/libunwind.git/commit/?h=v1.0-stable&id=ae5c1f2adf4da04235d87d024d4d942c01b2b447

There is a revision as following:
-      if (c && c->validate && validate_mem(addr))
+      if (likely (c != 0) && unlikely (c->validate)
+          && unlikely (validate_mem (addr)))

The if logic will have a different result while the c->validate is zero.
Is there a bug fixed here or I have a misunderstanding.

I am looking forward to your reply. Thank you!

Mat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]