Mercurial > hg > truffle
diff src/share/vm/graal/graalRuntime.cpp @ 10434:8b22524df53b
Add G1 Barriers' foreign calls
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Thu, 20 Jun 2013 16:10:14 +0200 |
parents | 62ea8789b88a |
children | 3489047ffea2 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp Thu Jun 20 15:36:49 2013 +0200 +++ b/src/share/vm/graal/graalRuntime.cpp Thu Jun 20 16:10:14 2013 +0200 @@ -358,6 +358,14 @@ } JRT_END +JRT_LEAF(void, GraalRuntime::write_barrier_pre(JavaThread* thread, oopDesc* obj)) + thread->satb_mark_queue().enqueue(obj); +JRT_END + +JRT_LEAF(void, GraalRuntime::write_barrier_post(JavaThread* thread, void* card_addr)) + thread->dirty_card_queue().enqueue(card_addr); +JRT_END + JRT_ENTRY(void, GraalRuntime::vm_error(JavaThread* thread, oop where, oop format, jlong value)) ResourceMark rm; assert(where == NULL || java_lang_String::is_instance(where), "must be");