/ go Public
cmd/compile: does not check go:writebarrierrec for print functions #34014
Issues related to the Go compiler and/or runtime.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
The runtime function
printwhich cmd/compile turns into calls to
go:nowritebarrierrec. It calls
printstringand friends. However, if I modify
printstringto force a write barrier, no error is issued when compiling the runtime package. If I then mark
go:nowritebarrierrec, I do get an error. My conclusion from this is that cmd/compile does not apply
go:nowritebarrierrecto the calls generated by calling the
I believe this is because in
printstringfunctions are never added to the
The text was updated successfully, but these errors were encountered: