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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"