1,000,000: p1 set x to 100, then p2 set x to x*x*x. or p2 set x to 1,000, then p1 set x to x*x.
10,000: p1 get x = 10, then p2 set x to 1000, then p1 compute 10*1000. or p2 get x, compute x*x = 100, then p1 set x to 100, then p2 set x to 100*100.
100: p1 compute x*x = 100, then p2 set x to 10*10*10, then p1 set x to 100.
100,000: p2 get x = 10, then p1 set x to 100, then p2 set x to 10*100*100.
1000: p2 compute 10*10*10 = 1000, then p1 set x to 100, then p2 set x to 1000.
after serializing, only 1,000,000 exists.

meteorgan