[Webkit-unassigned] [Bug 225984] New: Stop putting single pointers in their own blocks on the heap: std::unique_ptr<HashMap> and similar

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 19 14:34:53 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225984

            Bug ID: 225984
           Summary: Stop putting single pointers in their own blocks on
                    the heap: std::unique_ptr<HashMap> and similar
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: darin at apple.com

As seen in bug 225840 we sometimes make the mistake of allocating a HashMap or other very small single pointer structure on the heap, presumably because the programmer thinks a HashMap is expensive to allocate and destroy. Since it’s not and it’s already a pointer, we should remove any instances of this pattern.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210519/e68e92e6/attachment.htm>


More information about the webkit-unassigned mailing list