Bug 138495

Summary: bmalloc uses 8X more virtual memory than necessary
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: New BugsAssignee: 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 Flags
Patch
none
Patch mark.lam: review+

Geoffrey Garen
Reported 2014-11-06 22:15:32 PST
bmalloc uses 8X more virtual memory than necessary
Attachments
Patch (11.68 KB, patch)
2014-11-06 22:26 PST, Geoffrey Garen
no flags
Patch (11.63 KB, patch)
2014-11-07 09:59 PST, Geoffrey Garen
mark.lam: review+
Geoffrey Garen
Comment 1 2014-11-06 22:26:19 PST
Mark Lam
Comment 2 2014-11-07 01:23:34 PST
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().
Geoffrey Garen
Comment 3 2014-11-07 09:59:21 PST
> i.e. the same algorithm as roundUpToMultipleOf(). Good idea. I'll just use roundUpToMultipleOf directly.
Geoffrey Garen
Comment 4 2014-11-07 09:59:49 PST
Mark Lam
Comment 5 2014-11-07 10:01:14 PST
Comment on attachment 241189 [details] Patch r=me
Geoffrey Garen
Comment 6 2014-11-07 10:12:31 PST
Note You need to log in before you can comment on or make changes to this bug.