We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e096c commit b9a6838Copy full SHA for b9a6838
src/hotspot/share/gc/g1/g1DirtyCardQueue.cpp
@@ -347,8 +347,8 @@ class G1RefineBufferedCards : public StackObj {
347
G1ConcurrentRefineStats* _stats;
348
G1RemSet* const _g1rs;
349
350
- static inline int compare_card(const CardTable::CardValue* p1,
351
- const CardTable::CardValue* p2) {
+ static inline ptrdiff_t compare_cards(const CardTable::CardValue* p1,
+ const CardTable::CardValue* p2) {
352
return p2 - p1;
353
}
354
@@ -358,7 +358,7 @@ class G1RefineBufferedCards : public StackObj {
358
void sort_cards(size_t start_index) {
359
QuickSort::sort(&_node_buffer[start_index],
360
_node_buffer_size - start_index,
361
- compare_card,
+ compare_cards,
362
false);
363
364
0 commit comments