Erik Österlund

@eosterlund_fisk
394 Followers
117 Following
37 Posts
OpenJDK JVM and ZGC developer at Oracle.
Opinions expressed are unsurprisingly my own.

So people keep saying ChatGPT is a great programmer, but also a particularly good lawyer. So I asked ChatGPT what the legal implications are of copy and pasting code from ChatGPT into a product.

It replied with a text explaining why you can’t really do that as it didn’t really have license for hoovering up the internet and generating code from that.

ChatGPT has spoken - you can’t use it to code up products, according to itself!

Sorry to break it to you ChatGPT, but generational ZGC does it. Here is our load barrier:
shrq rref, $good_shift
ja slow_path
The $good_shift is updated with cross modifying code. The ”shrq” instruction removes all metadata bits. It also updates the carry and zero flags that the ”ja” instruction uses. Only a good pointer will have a 1 at the given bit position which will set the carry flag. A null pointer will set the zero flag. Hence, the ”ja” instruction will catch non-null not good pointers.
Pictures from our windows today. There were at least 10 fallow deer passing by. And then the archipelago on the other side. Still getting used to all this.