The Mg acceptors in a GaN:Mg layer grown in the presence of hydrogen are often passivated by H therefore can’t release mobile holes. It is particularly difficult to break the Mg-H bond and let the H atoms out if GaN:Mg is buried under n-type layers.
http://www.semiconductor-today.com/news_items/2018/sep/cornell_060918.shtml