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

Backport-of: 64b05ccbed7879dd38a49453a6098bfe9729ee76
  • Loading branch information
shipilev committed May 26, 2023
1 parent 6803da9 commit 6287df0
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 6287df0

@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.