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
Restore callBackToMethodValue function to fix dead code elimination (closes#7622)
Commit 725aa5b replaced the specialized callBackToMethodValue() function with
MethodByName(string(cbName)) to fix data race issues, but this inadvertently
broke dead code elimination optimization.
The original function used explicit string constants in MethodByName calls,
which allows the Go compiler/linker to perform dead code elimination. Using
MethodByName with a variable parameter prevents this optimization, potentially
increasing binary size for large projects.
This restores the callBackToMethodValue function while preserving the data
race fixes from commit 725aa5b, ensuring both thread safety and optimal
binary size for enterprise customers building large binaries.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments