7068625: Testing 8 bytes of card table entries at a time speeds up card-scanning

Check clean words instead of clean bytes

Reviewed-by: jcoomes, jmasa, jwilhelm, ysr
This commit is contained in:
Alexey Ragozin 2012-03-14 12:49:27 +01:00 committed by Bengt Rutisson
parent 4a2a6ebe99
commit 2c9482428f
3 changed files with 27 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -72,6 +72,9 @@ class CardTableModRefBS: public ModRefBarrierSet {
CT_MR_BS_last_reserved = 16
};
// a word's worth (row) of clean card values
static const intptr_t clean_card_row = (intptr_t)(-1);
// dirty and precleaned are equivalent wrt younger_refs_iter.
static bool card_is_dirty_wrt_gen_iter(jbyte cv) {
return cv == dirty_card || cv == precleaned_card;