Closed HoneyryderChuck closed 1 week ago
Could you make the part that changes #include <ruby/ractor.h>
a separate commit or PR?
@rhenium done. I'll rebase it here once it's merged.
@rhenium done
initialize also needs a frozen check.
why and where? 🤔
added a test.
ossl_bn_initialize()
- it doesn't have a rb_check_frozen(self)
.
gotcha, added. One question though: is it worth it, considering that on intialize, the object isn't expected to be frozen? What would that guard against?
It's needed because it's callable from Ruby, especially if the object is now expected to be thread safe when frozen. Whether calling #initialize
on a frozen object makes sense or not doesn't matter.
It looks good to me now. Thanks!
added frozen check on every state change.