[squeak-dev] MNU sendsToSuper in inheritanceButtonColor
K. K. Subramaniam
subbukk at gmail.com
Sat Jan 9 14:50:57 UTC 2010
On Saturday 09 January 2010 11:54:58 am Levente Uzonyi wrote:
> Fixing this issue won't be easy, because it's a concurreny issue. The
> execution normally never reaches the #sendsToSuper send, the method should
> return after the first line. But the code passes the first line,
> because currentCompiledMethod's value is not nil. Later at some other
> place currentCompiledMethod's value is changed to nil, but this happens
> before the code reaches the #sendsToSuper send
You're right. Thanks.
How about moving the compiledMethod check just after flags := 0?
flags := 0.
((currentCompiledMethod isKindOf: CompiledMethod) and:
[currentCompiledMethod sendsToSuper]) ifTrue: [ flags := flags bitOr: 2 ].
More information about the Squeak-dev