[Bug 239672] gcov: Optimize list traverse by two passes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 8 02:33:38 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239672

Conrad Meyer <cem at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
         Resolution|---                         |Works As Intended

--- Comment #5 from Conrad Meyer <cem at freebsd.org> ---
(In reply to Chuhong Yuan from comment #4)
> (In reply to Conrad Meyer from comment #3)
> I am not very clear about how to revise it...
> remove_node() will remove the node from "all_head" list and free the node,
> so how to call it in the first pass but just mark the nodes for removal and
> do not remove or free the nodes?

You would modify remove_node().

However, if you don't have clear motivation to improve this algorithm
(performance does not matter), don't have a good grasp of what the algorithm
does, why are you trying to change it?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list