You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since erts_prtsd_get can return a nullptr (0), GCC will isolate the null ptr access path and that can cause extra warnings to show up. In the case of the reported issue is extra warning with respect of an atomic store that might be storing to a null ptr offset.
It is better if add an assert or some other thing of protection here to make sure erts_prtsd_get does not get a nullptr.
This comes via https://gcc.gnu.org/PR118821 .
Since erts_prtsd_get can return a nullptr (0), GCC will isolate the null ptr access path and that can cause extra warnings to show up. In the case of the reported issue is extra warning with respect of an atomic store that might be storing to a null ptr offset.
It is better if add an assert or some other thing of protection here to make sure erts_prtsd_get does not get a nullptr.
https://github.com/erlang/otp/blob/29138f5dd1618d197ff382e7748756bd904678f7/erts/emulator/beam/dist.c#L3874C16-L3874C20 is the location I am talking about.
The text was updated successfully, but these errors were encountered: