Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalRuntime.cpp @ 8495:9131c075be7b
-More porting to G1 WBs
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Wed, 27 Feb 2013 15:15:04 +0100 |
parents | 286a49d423c9 |
children | b089cde44076 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp Tue Feb 26 19:49:00 2013 +0100 +++ b/src/share/vm/graal/graalRuntime.cpp Wed Feb 27 15:15:04 2013 +0100 @@ -485,13 +485,12 @@ JRT_LEAF(void, GraalRuntime::graal_wb_pre_call(JavaThread* thread, oopDesc* obj)) tty->print_cr("HELLO PRE WRITE BARRIER"); -if(!obj->is_oop()) { - tty->print_cr("ERROR in pre writebarrier address is not object " INTPTR_FORMAT, obj); -} + SharedRuntime::g1_wb_pre(obj, thread); JRT_END -JRT_LEAF(void, GraalRuntime::graal_wb_post_call(JavaThread* thread, oopDesc* obj)) +JRT_LEAF(void, GraalRuntime::graal_wb_post_call(JavaThread* thread, address* card_addr)) tty->print_cr("HELLO POST WRITE BARRIER"); + thread->dirty_card_queue().enqueue(card_addr); JRT_END JRT_LEAF(void, GraalRuntime::graal_monitorexit(JavaThread* thread, oopDesc* obj, BasicLock* lock))