13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "gc/shenandoah/shenandoahBarrierSet.inline.hpp"
26 #include "gc/shenandoah/shenandoahRuntime.hpp"
27 #include "gc/shenandoah/shenandoahThreadLocalData.hpp"
28 #include "oops/oop.inline.hpp"
29 #include "runtime/interfaceSupport.inline.hpp"
30 #include "utilities/copy.hpp"
31
32 JRT_LEAF(void, ShenandoahRuntime::arraycopy_barrier_oop(oop* src, oop* dst, size_t length))
33 ShenandoahBarrierSet::barrier_set()->arraycopy_barrier(src, dst, length);
34 JRT_END
35
36 JRT_LEAF(void, ShenandoahRuntime::arraycopy_barrier_narrow_oop(narrowOop* src, narrowOop* dst, size_t length))
37 ShenandoahBarrierSet::barrier_set()->arraycopy_barrier(src, dst, length);
38 JRT_END
39
40 JRT_LEAF(void, ShenandoahRuntime::write_barrier_pre(oopDesc* obj))
41 // Called from barrier slow-paths on full buffer.
42 // We need to enqueue without filters to force buffer cleanups.
43 ShenandoahBarrierSet::barrier_set()->enqueue(obj, /* filter = */ false);
44 JRT_END
45
46 JRT_LEAF(void, ShenandoahRuntime::write_barrier_pre_narrow(narrowOop nobj))
47 assert(!CompressedOops::is_null(nobj), "Filtered by caller");
48 // Called from barrier slow-paths on full buffer.
49 // We need to enqueue without filters to force buffer cleanups.
50 oop obj = CompressedOops::decode_not_null(nobj);
51 ShenandoahBarrierSet::barrier_set()->enqueue(obj, /* filter = */ false);
52 JRT_END
53
54 JRT_LEAF(oopDesc*, ShenandoahRuntime::load_reference_barrier_strong(oopDesc* src, oop* load_addr))
55 return ShenandoahBarrierSet::barrier_set()->load_reference_barrier_mutator<ON_STRONG_OOP_REF, oop>(src, load_addr);
56 JRT_END
57
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "gc/shenandoah/shenandoahBarrierSet.inline.hpp"
26 #include "gc/shenandoah/shenandoahRuntime.hpp"
27 #include "gc/shenandoah/shenandoahThreadLocalData.hpp"
28 #include "oops/oop.inline.hpp"
29 #include "runtime/interfaceSupport.inline.hpp"
30 #include "utilities/copy.hpp"
31
32 JRT_LEAF(void, ShenandoahRuntime::arraycopy_barrier_oop(oop* src, oop* dst, size_t length))
33 ShenandoahBarrierSet::barrier_set()->arraycopy_barrier(src, dst, length, false);
34 JRT_END
35
36 JRT_LEAF(void, ShenandoahRuntime::arraycopy_barrier_narrow_oop(narrowOop* src, narrowOop* dst, size_t length))
37 ShenandoahBarrierSet::barrier_set()->arraycopy_barrier(src, dst, length, false);
38 JRT_END
39
40 JRT_LEAF(void, ShenandoahRuntime::write_barrier_pre(oopDesc* obj))
41 // Called from barrier slow-paths on full buffer.
42 // We need to enqueue without filters to force buffer cleanups.
43 ShenandoahBarrierSet::barrier_set()->enqueue(obj, /* filter = */ false);
44 JRT_END
45
46 JRT_LEAF(void, ShenandoahRuntime::write_barrier_pre_narrow(narrowOop nobj))
47 assert(!CompressedOops::is_null(nobj), "Filtered by caller");
48 // Called from barrier slow-paths on full buffer.
49 // We need to enqueue without filters to force buffer cleanups.
50 oop obj = CompressedOops::decode_not_null(nobj);
51 ShenandoahBarrierSet::barrier_set()->enqueue(obj, /* filter = */ false);
52 JRT_END
53
54 JRT_LEAF(oopDesc*, ShenandoahRuntime::load_reference_barrier_strong(oopDesc* src, oop* load_addr))
55 return ShenandoahBarrierSet::barrier_set()->load_reference_barrier_mutator<ON_STRONG_OOP_REF, oop>(src, load_addr);
56 JRT_END
57
|