Gluon shadowing and jet quenching in relativistic heavy ion collisions