Skip to content

Commit b9a6838

Browse files
cost0muchPaul Hohensee
authored andcommitted
8309627: Incorrect sorting of DirtyCardQueue buffers
Backport-of: b94b679e9a82ff2ee6daee9631ce707e9b9eaf6b
1 parent 94e096c commit b9a6838

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hotspot/share/gc/g1/g1DirtyCardQueue.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ class G1RefineBufferedCards : public StackObj {
347347
G1ConcurrentRefineStats* _stats;
348348
G1RemSet* const _g1rs;
349349

350-
static inline int compare_card(const CardTable::CardValue* p1,
351-
const CardTable::CardValue* p2) {
350+
static inline ptrdiff_t compare_cards(const CardTable::CardValue* p1,
351+
const CardTable::CardValue* p2) {
352352
return p2 - p1;
353353
}
354354

@@ -358,7 +358,7 @@ class G1RefineBufferedCards : public StackObj {
358358
void sort_cards(size_t start_index) {
359359
QuickSort::sort(&_node_buffer[start_index],
360360
_node_buffer_size - start_index,
361-
compare_card,
361+
compare_cards,
362362
false);
363363
}
364364

0 commit comments

Comments
 (0)