8286346: 3-parameter version of AllocateHeap should not ignore AllocFailType

Reviewed-by: kbarrett, dholmes, stuefe
This commit is contained in:
Zhengyu Gu 2022-05-09 12:32:29 +00:00
parent 4f5d73f2d4
commit 64b05ccbed

@ -49,7 +49,7 @@ char* AllocateHeap(size_t size,
char* AllocateHeap(size_t size,
MEMFLAGS flags,
AllocFailType alloc_failmode /* = AllocFailStrategy::EXIT_OOM*/) {
return AllocateHeap(size, flags, CALLER_PC);
return AllocateHeap(size, flags, CALLER_PC, alloc_failmode);
}
char* ReallocateHeap(char *old,