False sharing induced by card table marking

card table marking技术虽然可以提高gc效率,但在高并发的情况下,会导致CPU缓存行的false sharing,从而可能会对吞吐量有较大负面影响。

可以开启-XX:+UseCondCardMark

开启这个功能后,card table marking,会在marking前判断一下,避免冗余的store操作。

参考:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7029167

你可能感兴趣的:(table)