Mercurial > hg > truffle
comparison src/share/vm/memory/defNewGeneration.hpp @ 2038:74ee0db180fa
6807801: CMS: could save/restore fewer header words during scavenge
Summary: Age bits need not enter the mark-word preservation calculus; also affected, in addition to CMS, per CR synopsis above, were ParNew (but not DefNew), ParallelScavenge and G1, albeit to a lesser degree than CMS.
Reviewed-by: tonyp, johnc
author | ysr |
---|---|
date | Fri, 17 Dec 2010 23:41:31 -0800 |
parents | f95d63e2154a |
children | b632e80fc9dc |
comparison
equal
deleted
inserted
replaced
2037:b03260081e9b | 2038:74ee0db180fa |
---|---|
83 void remove_forwarding_pointers(); | 83 void remove_forwarding_pointers(); |
84 | 84 |
85 // Preserve the mark of "obj", if necessary, in preparation for its mark | 85 // Preserve the mark of "obj", if necessary, in preparation for its mark |
86 // word being overwritten with a self-forwarding-pointer. | 86 // word being overwritten with a self-forwarding-pointer. |
87 void preserve_mark_if_necessary(oop obj, markOop m); | 87 void preserve_mark_if_necessary(oop obj, markOop m); |
88 void preserve_mark(oop obj, markOop m); // work routine used by the above | |
88 | 89 |
89 // Together, these keep <object with a preserved mark, mark value> pairs. | 90 // Together, these keep <object with a preserved mark, mark value> pairs. |
90 // They should always contain the same number of elements. | 91 // They should always contain the same number of elements. |
91 Stack<oop> _objs_with_preserved_marks; | 92 Stack<oop> _objs_with_preserved_marks; |
92 Stack<markOop> _preserved_marks_of_objs; | 93 Stack<markOop> _preserved_marks_of_objs; |