Skip to content

Commit

Permalink
fix compilation and issue with parameter evaluation ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Schatzl committed Jan 17, 2024
1 parent e60ce68 commit 7a10242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/hotspot/share/gc/g1/g1RegionPinCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
#include "precompiled.hpp"

#include "gc/g1/g1RegionPinCache.hpp"
#include "gc/g1/g1CollectedHeap.hpp"
#include "gc/g1/g1CollectedHeap.inline.hpp"
#include "gc/g1/heapRegion.inline.hpp"

G1RegionPinCache::~G1RegionPinCache() {
if (_count != 0) {
Expand Down
3 changes: 1 addition & 2 deletions src/hotspot/share/gc/g1/g1RegionPinCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class G1RegionPinCache : public StackObj {
}

Pair<uint, size_t> get_and_reset() {
Pair<uint, size_t> result(_region_idx, get_and_set(0, 0));
return result;
return Pair<uint, size_t> { _region_idx, get_and_set(0, 0) };
}
};

Expand Down

0 comments on commit 7a10242

Please sign in to comment.