Bug 225984 - Stop putting single pointers in their own blocks on the heap: std::unique_ptr<HashMap> and similar
Summary: Stop putting single pointers in their own blocks on the heap: std::unique_ptr...
Status: RESOLVED DUPLICATE of bug 226068
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 14:34 PDT by Darin Adler
Modified: 2021-05-21 16:22 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2021-05-19 14:34:53 PDT
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.
Comment 1 Darin Adler 2021-05-21 16:22:32 PDT

*** This bug has been marked as a duplicate of bug 226068 ***