Skip to content

Commit

Permalink
Fix sweep processing for big endian s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
nealef committed Mar 22, 2011
1 parent f6ba4f7 commit e5ff6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/metadata/sgen-marksweep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ initial_skip_card (guint8 *card_data)
#elif defined(__x86_64__) && defined(__GNUC__)
return card_data + i * 8 + (__builtin_ffsll (card) - 1) / 8;
#elif defined(__s390x__) && defined(__GNUC__)
return card_data + i * 8 + (__builtin_ffsll (card) - 1) / 8;
return card_data + i * 8 + (__builtin_ffsll (GUINT64_TO_LE(card)) - 1) / 8;
#else
for (i = i * SIZEOF_VOID_P; i < CARDS_PER_BLOCK; ++i) {
if (card_data [i])
Expand Down

0 comments on commit e5ff6e6

Please sign in to comment.