<div dir="ltr">Hi,<div><br></div><div>The write barrier was introduced in the VM a few years ago and is available at image level through a few extra primitives and the rewrite of the fall-back code of primitives mutating objects. VM support is complete.</div><div><br></div><div>The typical thing implemented on top of the write barrier is to detect the next time an object is mutated very cheaply performance-wise, and write image-level code to deal with the mutation.</div><div><br></div><div>Best,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 1:31 AM <<a href="mailto:ken.dickey@whidbey.com">ken.dickey@whidbey.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
On 2019-02-04 13:26, Gerald Klix via Cuis-dev wrote:<br>
..<br>
> I am implementing a package that supports the write barriers<br>
> implemented in the current virtual machine.<br>
> The package was meant to be an add-on to Cuis-Standard-Image.<br>
> Alas, I just discovered, that I have to modify a lot of<br>
> #at:put:-primitives to make it work with Array and similar<br>
> classes. Therefore I would like have this package integrated<br>
> in with current image, once it is finished.<br>
<br>
Gerald,<br>
<br>
As a long time advocate of "the simplest thing that will work", I am <br>
wondering at what your goal and purpose is here.  What cool things are <br>
you doing/adding that require a write barrier?<br>
<br>
Perhaps you should be looking at VMMaker and doing things at the VM <br>
level?  If so, you might make a case in the vm-dev mailing list for <br>
direct support.<br>
<br>
$0.02,<br>
-KenD<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Clément Béra<br></span><span style="color:rgb(0,0,238)"><a href="https://clementbera.github.io/" target="_blank">https://clementbera.github.io/</a></span><div style="font-size:12.8px"><a href="https://clementbera.wordpress.com/" target="_blank">https://clementbera.wordpress.com/</a></div></div></div></div></div></div>