Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2019 11:30:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 239672] [patch] gcov: optimize list traverse by using LIST_FOREACH_SAFE
Message-ID:  <bug-239672-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239672

            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@FreeBSD.org
          Reporter: hslester96@gmail.com

Created attachment 206304
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206304&action=
=3Dedit
gcov_fs patch

The original implementation of gcov_stats_reset() uses LIST_FOREACH to trav=
erse
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239672-227>