Preheat oven to 350°F (175°C). Line a 9-inch pie dish with unbaked pastry dough and crimp edges.
Melt chopped chocolate and butter in a heatproof bowl over low heat; stir until smooth and cool slightly.
Whisk granulated sugar, cocoa powder, cornmeal, flour, and salt together in a medium bowl.
Beat eggs, whole milk, and vanilla extract into the melted chocolate mixture until combined.
Stir dry ingredients into wet batter until smooth; pour into prepared crust.
Bake for 40 to 45 minutes until edges set and center shows a slight jiggle.
Cool completely on a wire rack for 2 hours before slicing.