On 14 Apr 2020, at 23:41, Konstantin Osipov <kostja.osipov@gmail.com> wrote:

This is unrelated. 1.5 didn't have plugin api and no ffi exports
and mons was hacking into it.

In fact he wasn't hacking into functions at all, he was hacking
into global state, such as cord_ptr->fiber, and it was not (and I
believe is not) removed from the visibility list by linker.

In short:
When trying to understand how this "feature" worked before, look
at 1.5, not 1.6+.

You are wrong. It works in 1.6 and was broken by mejedi in the middle of 1.7 and unfortunately left unseen

For ex, I’m using in 1.6:

ffi.cdef[[ uint32_t sc_version; ]]

Things like that stop working after that patch.

-- 
Mons Anderson
Software ArchitectMail.Ru Cloud Solutions
<mons@cpan.org>