Fix missing profiling header for origin_thunk frame.

It seems we were missing the profiling header in the frame declaration in Cmm.

I think what happened is we put the full sized thing on the stack. In the Cmm code we used SIZEOF_StgOrigThunkInfoFrame to determine the stack offset for returns.

So things worked out fine if we executed the frame.

However the (Cmm generated) info table said it was smaller. So if GC ever copied the frame then we would not copy the full frame, resulting in the return call to the next stack from jumping to garbage.

A bit odd that this copy actually sometimes happened on windows though in T24809.

Merge request reports

Loading