← Back to context

Comment by astrange

1 year ago

Not sure if objc_msgSend is a runtime, but it does require malloc, so there are limits to how low level it can be.

> objc_msgSend [...] does require malloc,

Are you sure about that?

    ]pwd
    objc4/runtime/Messengers.subproj
    ]rg malloc
    ]

The two variants I implemented way back when also did not require malloc.

And of course NeXT used objc_msgSend() in the kernel, to good effect, so that's pretty low-level.