+32
−20
Loading
An upcoming patch will change the size of ProfilerThreadId, which causes troubles with TracePayload. Trying to move members around didn't help, I'm guessing some padding remains, which cannot be accounted for by just enumerating member sizes. The proposed solution is to wrap all members in a macro (so they don't need to be repeated), and create a private struct with these members and a character, in order to find the exact offset at which the name will actually start. This is uglier, but more flexible, and allows future changes (internal or external) more easily, without having to modify the name-size formula. Differential Revision: https://phabricator.services.mozilla.com/D121050