Brief thought: D from Java/.net could be another write barrier benefit

Posted 2022-12-05

This week got very busy with unrelated things, so just a quick thought after the stats.

Core D Development Statistics

In the community

Community announcements

See more at the announce forum.

Another write barrier benefit

I've previously heard reports of D code being called from C# not working right and there was another report of D code being called from Java not working right on the forum this week. See:$1jmk$

Ali diagnosed it to a thread the Java runtime created without notifying the D runtime. With a write barrier, it'd be possible to obviate the need to notify the D runtime entirely; it would be done lazily at the write barrier boundary. This would probably help these cases too.