< prev index next >

src/hotspot/share/gc/shared/collectedHeap.cpp

Print this page
rev 48920 : [backport] Use PLAB for evacuations instead of TLAB


 608   // It is important to do this in a way such that concurrent readers can't
 609   // temporarily think something is in the heap.  (Seen this happen in asserts.)
 610   _reserved.set_word_size(0);
 611   _reserved.set_start(start);
 612   _reserved.set_end(end);
 613 }
 614 
 615 void CollectedHeap::post_initialize() {
 616   initialize_serviceability();
 617 }
 618 
 619 HeapWord* CollectedHeap::tlab_post_allocation_setup(HeapWord* obj) {
 620   return obj;
 621 }
 622 
 623 uint CollectedHeap::oop_extra_words() {
 624   // Default implementation doesn't need extra space for oops.
 625   return 0;
 626 }
 627 
 628 void CollectedHeap::accumulate_statistics_all_gclabs() {
 629   // Default implementation does nothing.
 630 }
 631 
 632 #ifndef CC_INTERP
 633 void CollectedHeap::compile_prepare_oop(MacroAssembler* masm, Register obj) {
 634   // Default implementation does nothing.
 635 }
 636 #endif
 637 
 638 bool CollectedHeap::supports_object_pinning() const {
 639   return false;
 640 }
 641 
 642 oop CollectedHeap::pin_object(JavaThread* thread, oop obj) {
 643   ShouldNotReachHere();
 644   return NULL;
 645 }
 646 
 647 void CollectedHeap::unpin_object(JavaThread* thread, oop obj) {
 648   ShouldNotReachHere();
 649 }


 608   // It is important to do this in a way such that concurrent readers can't
 609   // temporarily think something is in the heap.  (Seen this happen in asserts.)
 610   _reserved.set_word_size(0);
 611   _reserved.set_start(start);
 612   _reserved.set_end(end);
 613 }
 614 
 615 void CollectedHeap::post_initialize() {
 616   initialize_serviceability();
 617 }
 618 
 619 HeapWord* CollectedHeap::tlab_post_allocation_setup(HeapWord* obj) {
 620   return obj;
 621 }
 622 
 623 uint CollectedHeap::oop_extra_words() {
 624   // Default implementation doesn't need extra space for oops.
 625   return 0;
 626 }
 627 




 628 #ifndef CC_INTERP
 629 void CollectedHeap::compile_prepare_oop(MacroAssembler* masm, Register obj) {
 630   // Default implementation does nothing.
 631 }
 632 #endif
 633 
 634 bool CollectedHeap::supports_object_pinning() const {
 635   return false;
 636 }
 637 
 638 oop CollectedHeap::pin_object(JavaThread* thread, oop obj) {
 639   ShouldNotReachHere();
 640   return NULL;
 641 }
 642 
 643 void CollectedHeap::unpin_object(JavaThread* thread, oop obj) {
 644   ShouldNotReachHere();
 645 }
< prev index next >