| Summary: | bmalloc uses 8X more virtual memory than necessary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Geoffrey Garen <ggaren> | ||||||
| Component: | New Bugs | Assignee: | Geoffrey Garen <ggaren> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | benjamin, kling, mark.lam, sam | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Geoffrey Garen
2014-11-06 22:15:32 PST
Created attachment 241163 [details]
Patch
Comment on attachment 241163 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241163&action=review > Source/bmalloc/bmalloc/VMAllocate.h:96 > + char* aligned = mask(mapped, ~vmAlignmentMask) + vmAlignment; I think this should be: char* aligned = mask(mapped + vmAlignment, ~vmAlignmentMask); i.e. the same algorithm as roundUpToMultipleOf(). > i.e. the same algorithm as roundUpToMultipleOf().
Good idea. I'll just use roundUpToMultipleOf directly.
Created attachment 241189 [details]
Patch
Comment on attachment 241189 [details]
Patch
r=me
Committed r175751: <http://trac.webkit.org/changeset/175751> |