Mercurial > hg > truffle
diff src/share/vm/memory/cardTableRS.hpp @ 5939:c7a555a9449a
7068625: Testing 8 bytes of card table entries at a time speeds up card-scanning
Summary: Check clean words instead of clean bytes
Reviewed-by: jcoomes, jmasa, jwilhelm, ysr
Contributed-by: alexey.ragozin@gmail.com
author | brutisso |
---|---|
date | Wed, 14 Mar 2012 12:49:27 +0100 |
parents | fc2b798ab316 |
children | da91efe96a93 |
line wrap: on
line diff
--- a/src/share/vm/memory/cardTableRS.hpp Tue Mar 13 21:12:53 2012 +0100 +++ b/src/share/vm/memory/cardTableRS.hpp Wed Mar 14 12:49:27 2012 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 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 @@ -45,6 +45,10 @@ return CardTableModRefBS::clean_card; } + static intptr_t clean_card_row() { + return CardTableModRefBS::clean_card_row; + } + static bool card_is_dirty_wrt_gen_iter(jbyte cv) { return CardTableModRefBS::card_is_dirty_wrt_gen_iter(cv); @@ -176,6 +180,8 @@ // Work methods called by the clear_card() inline bool clear_card_serial(jbyte* entry); inline bool clear_card_parallel(jbyte* entry); + // check alignment of pointer + bool is_word_aligned(jbyte* entry); public: ClearNoncleanCardWrapper(DirtyCardToOopClosure* dirty_card_closure, CardTableRS* ct);