Skip to content

Commit

Permalink
8286346: 3-parameter version of AllocateHeap should not ignore AllocF…
Browse files Browse the repository at this point in the history
…ailType

Reviewed-by: kbarrett, dholmes, stuefe
  • Loading branch information
zhengyu123 committed May 9, 2022
1 parent 4f5d73f commit 64b05cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/memory/allocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit 64b05cc

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.