[Bug 239672] [patch] gcov: optimize list traverse by using LIST_FOREACH_SAFE
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Aug 6 11:30:58 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239672
Bug ID: 239672
Summary: [patch] gcov: optimize list traverse by using
LIST_FOREACH_SAFE
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: gnu
Assignee: bugs at FreeBSD.org
Reporter: hslester96 at gmail.com
Created attachment 206304
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206304&action=edit
gcov_fs patch
The original implementation of gcov_stats_reset() uses LIST_FOREACH to traverse
the list.
However, because of the remove inside, it has to traverse from the beginning
every time after removing node.
We can utilize LIST_FOREACH_SAFE to eliminate such redundant operations.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list