Indeed it starts at moulding stage..
.. where a small fault at almost each one of the stages involved ( including also temperature and humidity-DRY- controlled enviroment) , can start the 'seeds' for 'osmosis' , mostly years later.However , for this proccess to happen, water is needed . The barrier coat-correctly and tick enough applied- do just that .( altough , in small precentage it can happen from water in (uncoated) bilge too..). It is best done when boat new,but if hull sanded off to gealcoat, and PROPERLY dried , it helps in delaying the proccess..In our hot , humid Mediteranean weather , where boats are kept in water year around , it is good practice , done by owners now almost always on new boats , for years. All big brands have good quality hard two parts undercoats epoxy barrier paints ( Tar ones unadvisable now for GRP); some done by multi layers ( 5-6)of relatively thin films -primer like-with few hours between coats,like International , other use specific paint for that ,on the primer,with thicker and fewer coats , but totaling to same quite thick film.