Mercurial > hg > truffle
comparison src/share/vm/memory/cardTableModRefBS.hpp @ 1339:09ac706c2623
Merge
author | asaha |
---|---|
date | Wed, 24 Mar 2010 17:16:33 -0700 |
parents | 0414c1049f15 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1338:f5dd08ad65df | 1339:09ac706c2623 |
---|---|
337 bool is_card_claimed(size_t card_index) { | 337 bool is_card_claimed(size_t card_index) { |
338 jbyte val = _byte_map[card_index]; | 338 jbyte val = _byte_map[card_index]; |
339 return (val & (clean_card_mask_val() | claimed_card_val())) == claimed_card_val(); | 339 return (val & (clean_card_mask_val() | claimed_card_val())) == claimed_card_val(); |
340 } | 340 } |
341 | 341 |
342 void set_card_claimed(size_t card_index) { | |
343 jbyte val = _byte_map[card_index]; | |
344 if (val == clean_card_val()) { | |
345 val = (jbyte)claimed_card_val(); | |
346 } else { | |
347 val |= (jbyte)claimed_card_val(); | |
348 } | |
349 _byte_map[card_index] = val; | |
350 } | |
351 | |
342 bool claim_card(size_t card_index); | 352 bool claim_card(size_t card_index); |
343 | 353 |
344 bool is_card_clean(size_t card_index) { | 354 bool is_card_clean(size_t card_index) { |
345 return _byte_map[card_index] == clean_card_val(); | 355 return _byte_map[card_index] == clean_card_val(); |
346 } | 356 } |