Skip to content

Commit 7b6ae46

Browse files
author
Satyen Subramaniam
committed
8345173: BlockLocationPrinter::print_location misses a ResourceMark
Backport-of: f5ebda43709984214a25e23926860fea2ba5819a
1 parent 56f04e1 commit 7b6ae46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/gc/shared/locationPrinter.inline.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include "gc/shared/locationPrinter.hpp"
2929

30+
#include "memory/resourceArea.inline.hpp"
3031
#include "oops/compressedOops.inline.hpp"
3132
#include "oops/oopsHierarchy.hpp"
3233

@@ -51,6 +52,7 @@ oop BlockLocationPrinter<CollectedHeapT>::base_oop_or_null(void* addr) {
5152

5253
template <typename CollectedHeapT>
5354
bool BlockLocationPrinter<CollectedHeapT>::print_location(outputStream* st, void* addr) {
55+
ResourceMark rm;
5456
// Check if addr points into Java heap.
5557
if (CollectedHeapT::heap()->is_in(addr)) {
5658
oop o = base_oop_or_null(addr);

0 commit comments

Comments
 (0)