40 PreservedMark elem(obj, m);
41 _stack.push(elem);
42 }
43 }
44
45 inline void PreservedMarks::push_always(oop obj, markWord m) {
46 assert(!m.is_forwarded(), "precondition");
47 PreservedMark elem(obj, m);
48 _stack.push(elem);
49 }
50
51 inline PreservedMarks::PreservedMarks()
52 : _stack(PreservedMarkStack::default_segment_size(),
53 // This stack should be used very infrequently so there's
54 // no point in caching stack segments (there will be a
55 // waste of space most of the time). So we set the max
56 // cache size to 0.
57 0 /* max_cache_size */) { }
58
59 void PreservedMark::set_mark() const {
60 _o->set_mark(_m);
61 }
62
63 #endif // SHARE_GC_SHARED_PRESERVEDMARKS_INLINE_HPP
|
40 PreservedMark elem(obj, m);
41 _stack.push(elem);
42 }
43 }
44
45 inline void PreservedMarks::push_always(oop obj, markWord m) {
46 assert(!m.is_forwarded(), "precondition");
47 PreservedMark elem(obj, m);
48 _stack.push(elem);
49 }
50
51 inline PreservedMarks::PreservedMarks()
52 : _stack(PreservedMarkStack::default_segment_size(),
53 // This stack should be used very infrequently so there's
54 // no point in caching stack segments (there will be a
55 // waste of space most of the time). So we set the max
56 // cache size to 0.
57 0 /* max_cache_size */) { }
58
59 void PreservedMark::set_mark() const {
60 _o->set_mark(_m.copy_hashctrl_from(_o->mark()));
61 }
62
63 #endif // SHARE_GC_SHARED_PRESERVEDMARKS_INLINE_HPP
|