EN
In this paper we present for the first time luminescence and electrical measurements of GaN:Mg heteroepitaxial layers annealed at very high temperatures up to 1500°C and at high pressures of nitrogen up to 16 kbar. The presence of high nitrogen pressure prevents GaN from thermal decomposition. It was found that annealing in the presence of additional Mg atmosphere leads to a high quality p-type epitaxial layer of the hole concentration equal to 2×10^{17} cm^{-3} and mobility 16 cm^{2}/(V s). However, annealing at high temperatures without additional magnesium causes conversion to n-type. It is also shown that in the high temperature annealed GaN:Mg epilayers the donor-acceptor luminescence is the dominant recombination channel.