ObjFW  Ticket Change Details

Overview

Artifact ID: dcd3997439e5f389302900fd551ff31b55cdad5873bb17828a2a5db034b60fbc
Ticket: b41fb588c5feaaa974417dbc0732c86e772e105a
Call `+[unload]` when a shared library with classes gets unloaded
User & Date: js on 2024-01-06 10:58:15
Changes

  1. icomment:
    When a shared library gets unloaded, call `+[unload]` on all classes contained in that shared library. This will need a compiler change to not only create a constructor that calls into `__objc_exec_class` as is currently done, but also a destructor that calls into something like `__objc_unexec_class` (name TBD).
    
    It's unclear if this is possible at all with the Apple runtime. It might be that this can only be made possible with the Apple runtime when using `OFPlugin`.
    
  2. login: "js"
  3. milestone changed to: "none"
  4. mimetype: "text/x-markdown"
  5. priority changed to: "Medium"
  6. private_contact changed to: "c8a37120da0f2517297a682b10203a3a5eef21c2"
  7. severity changed to: "Minor"
  8. status changed to: "Open"
  9. title changed to:
    Call +[unload] when a shared library with classes gets unloaded
    
  10. type changed to: "Enhancement"