61 // If compressed oops were not being used, these should already be aligned
62 assert(UseCompressedOops || (aligned_start == start && aligned_end == end),
63 "Expected heap word alignment of start and end");
64 write_ref_array_work(MemRegion(aligned_start, aligned_end));
65 }
66
67 // count is number of array elements being written
68 void BarrierSet::static_write_ref_array_post(HeapWord* start, size_t count) {
69 // simply delegate to instance method
70 Universe::heap()->barrier_set()->write_ref_array(start, count);
71 }
72
73 bool BarrierSet::obj_equals(oop obj1, oop obj2) {
74 return oopDesc::unsafe_equals(obj1, obj2);
75 }
76
77 bool BarrierSet::obj_equals(narrowOop obj1, narrowOop obj2) {
78 return oopDesc::unsafe_equals(obj1, obj2);
79 }
80
81 #ifdef ASSERT
82 void BarrierSet::verify_safe_oop(oop p) {
83 // Do nothing
84 }
85
86 void BarrierSet::verify_safe_oop(narrowOop p) {
87 // Do nothing
88 }
89 #endif
|
61 // If compressed oops were not being used, these should already be aligned
62 assert(UseCompressedOops || (aligned_start == start && aligned_end == end),
63 "Expected heap word alignment of start and end");
64 write_ref_array_work(MemRegion(aligned_start, aligned_end));
65 }
66
67 // count is number of array elements being written
68 void BarrierSet::static_write_ref_array_post(HeapWord* start, size_t count) {
69 // simply delegate to instance method
70 Universe::heap()->barrier_set()->write_ref_array(start, count);
71 }
72
73 bool BarrierSet::obj_equals(oop obj1, oop obj2) {
74 return oopDesc::unsafe_equals(obj1, obj2);
75 }
76
77 bool BarrierSet::obj_equals(narrowOop obj1, narrowOop obj2) {
78 return oopDesc::unsafe_equals(obj1, obj2);
79 }
80
|