[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [PATCH] Process>>#isSuspendedInCCall

From: Gwenaël Casaccio
Subject: Re: [Help-smalltalk] [PATCH] Process>>#isSuspendedInCCall
Date: Tue, 15 Apr 2014 17:47:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 14/04/2014 20:17, Gwenaël Casaccio wrote:
On 12/04/2014 11:15, Gwenaël Casaccio wrote:

I've added Process>>#isSuspendedInCCall useful when you try
to make the difference between a suspended process and a process
to make a c-call which is reentrant.


Don't apply it I've a better implementation not yet finished but here are the big lines: In the primitive I get the context (if it's a block I get the method context in the outer context)
and I set or unset a bit in the flag.

Now I'm not sure the it's not the current context that should be tagged and not the outer context
but that requires more changes in the vm.


Here is the patch: I've add one slot to ContextPart (ctxtFlags) and thisContext is tagged while being reentrant. And few primitives (compile, ccall) are extended to tag the context.


Attachment: 0002-Add-Process-isSuspendedInCCall.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]