Pinning object resets write barrier protection

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pinning object resets write barrier protection

Denis Kudriashov
 
Hi.

I think I found a bug:

array := {10. 20}.
array beReadOnlyObject .
array pinInMemory.
array at: 1 put: 3. "=> succeed"

Looks like pinning object resets write barrier.
Interesting that unpinning readonly object works properly:

array := {10. 20}.
array pinInMemory.
array beReadOnlyObject.
array unpinInMemory.
array at: 1 put: 3. "=> fails"

Best regards,
Denis

Reply | Threaded
Open this post in threaded view
|

Re: Pinning object resets write barrier protection

Eliot Miranda-2
 
Hi Denis,

On Wed, Jan 10, 2018 at 2:55 AM, Denis Kudriashov <[hidden email]> wrote:
 
Hi.

I think I found a bug:

array := {10. 20}.
array beReadOnlyObject .
array pinInMemory.
array at: 1 put: 3. "=> succeed"

Looks like pinning object resets write barrier.
Interesting that unpinning readonly object works properly:

array := {10. 20}.
array pinInMemory.
array beReadOnlyObject.
array unpinInMemory.
array at: 1 put: 3. "=> fails"

Good catch!  I will fix this tomorrow.
 

Best regards,
Denis





--
_,,,^..^,,,_
best, Eliot