src/share/vm/gc_implementation/shared/markSweep.inline.hpp

changeset 4542
db9981fd3124
parent 4384
b735136e0d82
child 5011
a08c80e9e1e5
equal deleted inserted replaced
4461:46e60405583b 4542:db9981fd3124
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_INLINE_HPP 26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_INLINE_HPP
27 27
28 #include "gc_implementation/shared/markSweep.hpp" 28 #include "gc_implementation/shared/markSweep.hpp"
29 #include "gc_interface/collectedHeap.hpp" 29 #include "gc_interface/collectedHeap.hpp"
30 #include "utilities/stack.inline.hpp" 30 #include "utilities/stack.inline.hpp"
31 #ifndef SERIALGC 31 #include "utilities/macros.hpp"
32 #if INCLUDE_ALL_GCS
32 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp" 33 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp"
33 #endif 34 #endif // INCLUDE_ALL_GCS
34 35
35 inline void MarkSweep::mark_object(oop obj) { 36 inline void MarkSweep::mark_object(oop obj) {
36 // some marks may contain information we need to preserve so we store them away 37 // some marks may contain information we need to preserve so we store them away
37 // and overwrite the mark. We'll restore it at the end of markSweep. 38 // and overwrite the mark. We'll restore it at the end of markSweep.
38 markOop mark = obj->mark(); 39 markOop mark = obj->mark();

mercurial