This is not pitting ...
What you see is most likely the black oxide finish wearing off inside the barrel or excess material due to the Tenifer process.
The temperatures neccessary to apply the Tenifer are high -- about 600+ degrees -- during which some excess Tenifer may brittilize -- not all of it, and NOT the barrel steel -- but a fine, micro-layer of Tenifer brittilization. Beneath this brittilized excess, the Tenifer does penetrate into the steel of the barrel and provides the same protection as barrels with no excess brittilized Tenifer. Glock can produce barrels with consecutive serial numbers, and one barrel will show some brittlizing of excess Tenifer and the very next barrel will not.
Since the application of the Tenifer coating does not interfere with the integrity of the steel in the barrel (no stress-related problems), Glock Inc. does not consider this a defect. Nor have they done much to find out why this event occurs. Glock considers this problem purely cosmetic in nature, which has no effect on the accuracy or the integrity of the barrel. This excess Tenifer usually disappears somewhere around 1,200 - 2,000 rounds. Then the "pitting" will stop or disappear, and only the Tenifer which bonds to the steel will remain.
If this "pitting" still bothers you, call Glock's Warranty Dept. They'll tell you to send your pistol back to Smyrna with a detailed letter describing the pitting that you see. They'll probably tell you what I just said above and then offer to replace your barrel if you want. However, the replacement barrel's serial number will not match. My advice is to just ignore it. It will go away eventually.