[Webkit-unassigned] [Bug 143910] New: Add debugging tools to test if a given pointer is a valid object and in the heap.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 17 17:31:22 PDT 2015


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

            Bug ID: 143910
           Summary: Add debugging tools to test if a given pointer is a
                    valid object and in the heap.
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

When doing debugging from lldb, sometimes, it is useful to be able to tell if a purported JSObject is really a valid object in the heap or not.  We can add the following utility functions to help:
    isValidObject(heap, candidate) - returns true if the candidate is a "live" object in the heap.
    isInHeap(heap, candidate) - returns true if the candidate is the heap's Object space or Storage space.
    isInObjectSpace(heap, candidate) - returns true if the candidate is the heap's Object space.
    isInStorageSpace(heap, candidate) - returns true if the candidate is the heap's Storage space.

-- 
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/20150418/4271f98a/attachment.html>


More information about the webkit-unassigned mailing list