Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
8494:7c9dbc80fd7d | 8495:9131c075be7b |
---|---|
483 } | 483 } |
484 JRT_END | 484 JRT_END |
485 | 485 |
486 JRT_LEAF(void, GraalRuntime::graal_wb_pre_call(JavaThread* thread, oopDesc* obj)) | 486 JRT_LEAF(void, GraalRuntime::graal_wb_pre_call(JavaThread* thread, oopDesc* obj)) |
487 tty->print_cr("HELLO PRE WRITE BARRIER"); | 487 tty->print_cr("HELLO PRE WRITE BARRIER"); |
488 if(!obj->is_oop()) { | 488 SharedRuntime::g1_wb_pre(obj, thread); |
489 tty->print_cr("ERROR in pre writebarrier address is not object " INTPTR_FORMAT, obj); | 489 JRT_END |
490 } | 490 |
491 JRT_END | 491 JRT_LEAF(void, GraalRuntime::graal_wb_post_call(JavaThread* thread, address* card_addr)) |
492 | |
493 JRT_LEAF(void, GraalRuntime::graal_wb_post_call(JavaThread* thread, oopDesc* obj)) | |
494 tty->print_cr("HELLO POST WRITE BARRIER"); | 492 tty->print_cr("HELLO POST WRITE BARRIER"); |
493 thread->dirty_card_queue().enqueue(card_addr); | |
495 JRT_END | 494 JRT_END |
496 | 495 |
497 JRT_LEAF(void, GraalRuntime::graal_monitorexit(JavaThread* thread, oopDesc* obj, BasicLock* lock)) | 496 JRT_LEAF(void, GraalRuntime::graal_monitorexit(JavaThread* thread, oopDesc* obj, BasicLock* lock)) |
498 assert(thread == JavaThread::current(), "threads must correspond"); | 497 assert(thread == JavaThread::current(), "threads must correspond"); |
499 assert(thread->last_Java_sp(), "last_Java_sp must be set"); | 498 assert(thread->last_Java_sp(), "last_Java_sp must be set"); |