It's hard to say....sometimes they will be swapped to accomodate different loads. For example, if SFO has more J pax and less Y pax, and LHR has the opposite, then they will swap them around.
Also, sometimes due to tech reasons. I think after check-in would be pretty safe.