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
Then it's harmless, it's just unprotected access on a basically integer value, which on x86/x64 will "just" result in different CPUs seeing a different cached value until they are synced (which is usually unpredictable).
The easiest fix would be to either convert firstTemplateCreated to int32 and use StoreInt32 or LoadInt32 from sync/atomic, or convert it to the Bool type from the same module.
System:
Problem:
pongo2.FromFile()
method is having a data race when put underwrk
stress test. The commands I used for stress test is:Setup:
The setup is just a single view with data:
main.go
:index.html
:Result: Data Race
The text was updated successfully, but these errors were encountered: