[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] 3e4db1: include sys/ucontext.h unconditionally in sqUnixMa...

Eliot Miranda eliot.miranda at gmail.com
Mon Dec 11 04:30:34 UTC 2017


Hi Christian,



> On Dec 10, 2017, at 1:32 PM, Christian Kellermann <ckeen at pestilenz.org> wrote:
> 
> 
> * Tobias Pape <Das.Linux at gmx.de> [171210 22:30]:
>> 
>> 
>>> On 10.12.2017, at 22:03, Christian Kellermann <ckeen at pestilenz.org> wrote:
>>> 
>>> 
>>> * GitHub <noreply at github.com> [171210 15:45]:
>>>> 
>>> 
>>>> Branch: refs/heads/Cog
>>>> Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
>>>> Commit: 3e4db144896baceb78e276986cf85a0a53da542a
>>>>     https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/3e4db144896baceb78e276986cf85a0a53da542a
>>>> Author: Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
>>>> Date:   2017-12-10 (Sun, 10 Dec 2017)
>>>> 
>>>> Changed paths:
>>>>   M platforms/unix/vm/sqUnixMain.c
>>>> 
>>>> Log Message:
>>>> -----------
>>>> include sys/ucontext.h unconditionally in sqUnixMain.c
>>>> 
>>>> Also give a prototype to isdigit and toupper (thru ctype.h).
>>> 
>>> Sorry for catching this too late. There is no sys/ucontext.h on
>>> OpenBSD. Can we at least wrap this in a ifndef __OpenBSD__ please?

+1

>> 
>> what about ucontext.h? 
> 
> There is no uc_mcontext, ucontext_t lives in <signal.h> and is a
> typedef for struct sigcontext. Why is this needed exactly?

The VM profiler samples the of periodically, storing it in a circular buffer.  On unix this is fine by delivering a signal and having the signal handler access the interrupted pc through the supplied uc_mcontext

> I could
> compile the VM before without issues
> 
> Cheers,
> 
> Christian
> 
> -- 
> May you be peaceful, may you live in safety, may you be free from
> suffering, and may you live with ease.


More information about the Vm-dev mailing list