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 aace3dc commit b94b679Copy full SHA for b94b679
src/hotspot/share/gc/g1/g1DirtyCardQueue.cpp
@@ -346,8 +346,8 @@ class G1RefineBufferedCards : public StackObj {
346
G1ConcurrentRefineStats* _stats;
347
G1RemSet* const _g1rs;
348
349
- static inline int compare_card(const CardTable::CardValue* p1,
350
- const CardTable::CardValue* p2) {
+ static inline ptrdiff_t compare_cards(const CardTable::CardValue* p1,
+ const CardTable::CardValue* p2) {
351
return p2 - p1;
352
}
353
@@ -357,7 +357,7 @@ class G1RefineBufferedCards : public StackObj {
357
void sort_cards(size_t start_index) {
358
QuickSort::sort(&_node_buffer[start_index],
359
_node_buffer_size - start_index,
360
- compare_card,
+ compare_cards,
361
false);
362
363
0 commit comments