I think 4 objects are eligible.
m1 ---------> 1st main4 and weight
m2 ---------> 2nd main4 and weight
m3 ---------> 3rd main4 and weight
m3 = m2;
m2,m3 -----> 2nd main4 and weight
xxxxxxxxxxxx 3rd main4 and weight eligible for gc
m1 = m2;
m1,m3,m2----->2nd main4 and weight
xxxxxxxx 1st main4 and weight eligible
m2 = null;
m1,m3 ----> 2nd main4 and weight
m3 = m1;
m1,m3 ----> 2nd main4 and weight
so total 4 object 1st and 3rd main4 with their weights.