Tweak GCC's inlining parameters to get thread_obj inlined