Help! How would you feel in my shoes?

So my boyfriend is in the Navy and he lives in the barracks and he shares his room with another guy . Well the other guy’s girlfriend goes over to his room when ever she wants ( whether her boyfriend is there or not; she sometimes sleeps over.) I don’t have a problem with her going over . But today my boyfriend told me that she walks around with no pants on , even when her boyfriend is not there (just underwear and a shirt ) and then my boyfriend said “so I walk around with just my boxers” . And that really bothered me . I got upset and he got mad and said “this is why I don’t like telling you things”

How you feel and what would you do if you were in my shoes?