comparison src/share/vm/graal/graalCompilerToVM.cpp @ 10953:97e282186b5b

Add heap sanity checker with premature hard crash for debugging write barriers
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Fri, 02 Aug 2013 19:03:05 +0200
parents 4bd4bf0b47f4
children a7c7b0bd0557
comparison
equal deleted inserted replaced
10952:b43bc053ce8f 10953:97e282186b5b
857 set_int("g1SATBQueueIndexOffset", in_bytes(JavaThread::satb_mark_queue_offset() + PtrQueue::byte_offset_of_index())); 857 set_int("g1SATBQueueIndexOffset", in_bytes(JavaThread::satb_mark_queue_offset() + PtrQueue::byte_offset_of_index()));
858 set_int("g1SATBQueueBufferOffset", in_bytes(JavaThread::satb_mark_queue_offset() + PtrQueue::byte_offset_of_buf())); 858 set_int("g1SATBQueueBufferOffset", in_bytes(JavaThread::satb_mark_queue_offset() + PtrQueue::byte_offset_of_buf()));
859 set_address("writeBarrierPreAddress", GraalRuntime::write_barrier_pre); 859 set_address("writeBarrierPreAddress", GraalRuntime::write_barrier_pre);
860 set_address("writeBarrierPostAddress", GraalRuntime::write_barrier_post); 860 set_address("writeBarrierPostAddress", GraalRuntime::write_barrier_post);
861 set_address("gcTotalCollectionsAddress", (jlong)(address)(Universe::heap()->total_collections_address())); 861 set_address("gcTotalCollectionsAddress", (jlong)(address)(Universe::heap()->total_collections_address()));
862 set_address("validateObject", GraalRuntime::validate_object);
862 863
863 BarrierSet* bs = Universe::heap()->barrier_set(); 864 BarrierSet* bs = Universe::heap()->barrier_set();
864 switch (bs->kind()) { 865 switch (bs->kind()) {
865 case BarrierSet::CardTableModRef: 866 case BarrierSet::CardTableModRef:
866 case BarrierSet::CardTableExtension: 867 case BarrierSet::CardTableExtension: