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
Hello,
I've been trying to use your library, and the notification handing system in it, but have come up against a strange issue. By default, Go seems to inline the NotifyHandler function, which for some reason breaks it, and so the function specified in it is never called.
I've fixed this locally by adding the compiler directive //go:noinline above the NotifyHandler and NotifyHandlerString functions, but this is probably a hack rather than a long-term fix.
A minimal program to re-produce this can be found below:
Build normally, with go build, then move from the root channel on teampseak to another, note no output.
But when built with go build -gcflags '-l', which disables inline optimization, the expected output is given.
Tested on Arch Linux, with go version 1.9.2
The text was updated successfully, but these errors were encountered:
Hello,
I've been trying to use your library, and the notification handing system in it, but have come up against a strange issue. By default, Go seems to inline the NotifyHandler function, which for some reason breaks it, and so the function specified in it is never called.
I've fixed this locally by adding the compiler directive
//go:noinline
above the NotifyHandler and NotifyHandlerString functions, but this is probably a hack rather than a long-term fix.A minimal program to re-produce this can be found below:
Build normally, with go build, then move from the root channel on teampseak to another, note no output.
But when built with
go build -gcflags '-l'
, which disables inline optimization, the expected output is given.Tested on Arch Linux, with go version 1.9.2
The text was updated successfully, but these errors were encountered: