[Webkit-unassigned] [Bug 231819] New: Add tests for WTF::OSObjectPtr/adoptOSObject in Cocoa with and without ARC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 15 10:53:39 PDT 2021


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

            Bug ID: 231819
           Summary: Add tests for WTF::OSObjectPtr/adoptOSObject in Cocoa
                    with and without ARC
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: darin at apple.com

Add tests for WTF::OSObjectPtr/adoptOSObject in Cocoa with and without ARC.

While fixing Bug 231817, I decided to add tests for WTF::OSObjectPtr/adoptOSObject in Cocoa sources with and without ARC.

The interesting thing about the xpc_object_t type is that it behaves like a CFTypeRef in C/C++ code, like a CFTypeRef/NSObject in Cocoa without ARC (MRR), and like an NSObject in Cocoa with ARC (since ARC manages the lifetime of all xpc_object_t objects).

I suspect that WTF::OSObjectPtr/adoptOSObject probably leaks objects under ARC (and there is at least one using of it in an Objective-C++ source file in WTF), but I can't quite nail down a failing test.  (I think the test may be flakey based on whether MRR or ARC code is kept during linking.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211015/e44155fb/attachment-0001.htm>


More information about the webkit-unassigned mailing list