diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -1250,17 +1250,17 @@ def pgo_flags(compiler):
         )
 
     if compiler.type == 'msvc':
         num_cores = min(8, multiprocessing.cpu_count())
         cgthreads = '-CGTHREADS:%s' % num_cores
 
         return namespace(
             gen_cflags=['-GL'],
-            gen_ldflags=['-LTCG:PGINSTRUMENT', '-PogoSafeMode', cgthreads],
+            gen_ldflags=['-LTCG', '-GENPROFILE:MEMMAX=536870912', '-PogoSafeMode', cgthreads],
             # XXX: PGO builds can fail with warnings treated as errors,
             # specifically "no profile data available" appears to be
             # treated as an error sometimes. This might be a consequence
             # of using WARNINGS_AS_ERRORS in some modules, combined
             # with the linker doing most of the work in the whole-program
             # optimization/PGO case. I think it's probably a compiler bug,
             # but we work around it here.
             use_cflags=['-GL', '-wd4624', '-wd4952'],
