[Webkit-unassigned] [Bug 166988] New: Heap uses pointers way too much

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 12 14:49:21 PST 2017


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

            Bug ID: 166988
           Summary: Heap uses pointers way too much
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fpizlo at apple.com

The Heap uses pointers in a lot of places where we would ordinarily use references.  In JSC we use references when:

- Not pointing to the JSC heap.  (Most of Heap's pointers are not heap pointers.)
- The pointer is immutable.
- Using references would not introduce lots of * to & (and vice-versa) conversions.
- The pointer is non-null.

Under these rules, we could move most of Heap's pointers to references.  I think we should do it all at once or in a short burst of patches right next to each other.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170112/f31ed27d/attachment.html>


More information about the webkit-unassigned mailing list