[webkit-changes] [WebKit/WebKit] 703850: Pass `RTLD_FIRST | RTLD_NOW` when dlopening UIKit

Chris Dumez noreply at github.com
Mon Sep 16 16:32:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 703850c886c514b1c4fbeea55ee5a50ba5ee5552
      https://github.com/WebKit/WebKit/commit/703850c886c514b1c4fbeea55ee5a50ba5ee5552
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-09-16 (Mon, 16 Sep 2024)

  Changed paths:
    M Source/WTF/wtf/cocoa/SoftLinking.h
    M Source/WebCore/PAL/pal/ios/UIKitSoftLink.mm

  Log Message:
  -----------
  Pass `RTLD_FIRST | RTLD_NOW` when dlopening UIKit
https://bugs.webkit.org/show_bug.cgi?id=279777
rdar://130524656

Reviewed by Wenson Hsieh.

Pass `RTLD_FIRST | RTLD_NOW` when dlopening UIKit, instead of just `RTLD_NOW`.
This is a launch time optimization recommended by the performance team. search
for the symbol RTLD_FIRST will cause calls to exit on first finding the symbol,
making the calls faster.

* Source/WTF/wtf/cocoa/SoftLinking.h:
* Source/WebCore/PAL/pal/ios/UIKitSoftLink.mm:

Canonical link: https://commits.webkit.org/283729@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list