Go has a wonderful, accessible discussion of how it does inlining today, the downsides, and the plans for 1.22: https://docs.google.com/document/d/1a6p7-nbk5PVyM1S2tmccFrrIuGzCyzclstBtaciHxVw/mobilebasic