Skip to content


8309627: Incorrect sorting of DirtyCardQueue buffers
Browse files Browse the repository at this point in the history
Reviewed-by: ayang, shade
  • Loading branch information
Kim Barrett committed Jun 10, 2023
1 parent aace3dc commit b94b679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/gc/g1/g1DirtyCardQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ class G1RefineBufferedCards : public StackObj {
G1ConcurrentRefineStats* _stats;
G1RemSet* const _g1rs;

static inline int compare_card(const CardTable::CardValue* p1,
const CardTable::CardValue* p2) {
static inline ptrdiff_t compare_cards(const CardTable::CardValue* p1,
const CardTable::CardValue* p2) {
return p2 - p1;

Expand All @@ -357,7 +357,7 @@ class G1RefineBufferedCards : public StackObj {
void sort_cards(size_t start_index) {
_node_buffer_size - start_index,

Expand Down

1 comment on commit b94b679

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.