RESOLVED FIXED136993
bmalloc: Allocation should be more precise
https://bugs.webkit.org/show_bug.cgi?id=136993
Summary bmalloc: Allocation should be more precise
Geoffrey Garen
Reported 2014-09-21 22:09:24 PDT
bmalloc: Allocation should be more precise
Attachments
Patch (47.40 KB, patch)
2014-09-21 23:01 PDT, Geoffrey Garen
ggaren: review-
Patch (47.83 KB, patch)
2014-09-21 23:02 PDT, Geoffrey Garen
no flags
Patch (51.14 KB, patch)
2014-09-22 00:29 PDT, Geoffrey Garen
no flags
Patch (51.57 KB, patch)
2014-09-22 00:30 PDT, Geoffrey Garen
no flags
Patch (51.65 KB, patch)
2014-09-22 00:43 PDT, Geoffrey Garen
no flags
Patch (51.59 KB, patch)
2014-09-22 18:37 PDT, Geoffrey Garen
barraclough: review+
Geoffrey Garen
Comment 1 2014-09-21 23:01:30 PDT
Geoffrey Garen
Comment 2 2014-09-21 23:02:49 PDT
WebKit Commit Bot
Comment 3 2014-09-21 23:03:52 PDT
Attachment 238451 [details] did not pass style-queue: ERROR: Source/bmalloc/bmalloc/Heap.cpp:237: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/bmalloc/bmalloc/Heap.cpp:262: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 4 2014-09-22 00:29:26 PDT
Geoffrey Garen
Comment 5 2014-09-22 00:30:19 PDT
WebKit Commit Bot
Comment 6 2014-09-22 00:31:30 PDT
Attachment 238456 [details] did not pass style-queue: ERROR: Source/bmalloc/bmalloc/Heap.cpp:237: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/bmalloc/bmalloc/Heap.cpp:262: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 7 2014-09-22 00:43:34 PDT
WebKit Commit Bot
Comment 8 2014-09-22 00:46:33 PDT
Attachment 238457 [details] did not pass style-queue: ERROR: Source/bmalloc/bmalloc/Heap.cpp:237: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/bmalloc/bmalloc/Heap.cpp:262: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 9 2014-09-22 18:37:57 PDT
WebKit Commit Bot
Comment 10 2014-09-22 18:39:08 PDT
Attachment 238511 [details] did not pass style-queue: ERROR: Source/bmalloc/bmalloc/Heap.cpp:237: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/bmalloc/bmalloc/Heap.cpp:262: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gavin Barraclough
Comment 11 2014-09-23 09:26:47 PDT
Comment on attachment 238457 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=238457&action=review r+ with discussed scavenge changes. > Source/bmalloc/ChangeLog:74 > + (bmalloc::Heap::allocateMediumLineSlowCase): Deleted. Foled into the Folded? > Source/bmalloc/bmalloc/Heap.cpp:190 > +void Heap::refillMediumBumpRangeCache(std::lock_guard<StaticMutex>& lock, size_t sizeClass, MediumBumpRangeCache& rangeCache) Much duplication! so copy! > Source/bmalloc/bmalloc/Heap.cpp:201 > + for (size_t lineNumber = 0; lineNumber < end; ++lineNumber) { Could be worth a comment on these two loops – outer loop finds new disjoint ranges, inner loop coalesces additional lines into a range. > Source/bmalloc/bmalloc/Heap.cpp:211 > + while (++lineNumber < end) { Could be worth a comment on these two loops – outer loop finds new disjoint ranges, inner loop coalesces additional lines into a range. > Source/bmalloc/bmalloc/Heap.cpp:250 > +MediumPage* Heap::allocateMediumPage(std::lock_guard<StaticMutex>& lock, size_t sizeClass) Much duplication! so copy! > Source/bmalloc/bmalloc/Heap.cpp:297 > +void Heap::deallocateMediumLine(std::lock_guard<StaticMutex>& lock, MediumLine* line) Much duplication! so copy!
Geoffrey Garen
Comment 12 2014-09-23 11:24:10 PDT
Note You need to log in before you can comment on or make changes to this bug.