hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
changeset 9997 b75b7939f448
parent 9995 290620c08233
child 10000 5bbb58b0dbb9
equal deleted inserted replaced
9996:3851e45f93e7 9997:b75b7939f448
   827   return attempt_allocation(word_size, &dummy_gc_count_before);
   827   return attempt_allocation(word_size, &dummy_gc_count_before);
   828 }
   828 }
   829 
   829 
   830 HeapWord*
   830 HeapWord*
   831 G1CollectedHeap::mem_allocate(size_t word_size,
   831 G1CollectedHeap::mem_allocate(size_t word_size,
   832                               bool   is_noref,
       
   833                               bool   is_tlab,
       
   834                               bool*  gc_overhead_limit_was_exceeded) {
   832                               bool*  gc_overhead_limit_was_exceeded) {
   835   assert_heap_not_locked_and_not_at_safepoint();
   833   assert_heap_not_locked_and_not_at_safepoint();
   836   assert(!is_tlab, "mem_allocate() this should not be called directly "
       
   837          "to allocate TLABs");
       
   838 
   834 
   839   // Loop until the allocation is satisified, or unsatisfied after GC.
   835   // Loop until the allocation is satisified, or unsatisfied after GC.
   840   for (int try_count = 1; /* we'll return */; try_count += 1) {
   836   for (int try_count = 1; /* we'll return */; try_count += 1) {
   841     unsigned int gc_count_before;
   837     unsigned int gc_count_before;
   842 
   838 
  2620   } else {
  2616   } else {
  2621     return MIN2(MAX2(hr->free(), (size_t) MinTLABSize), max_tlab_size);
  2617     return MIN2(MAX2(hr->free(), (size_t) MinTLABSize), max_tlab_size);
  2622   }
  2618   }
  2623 }
  2619 }
  2624 
  2620 
  2625 size_t G1CollectedHeap::large_typearray_limit() {
       
  2626   // FIXME
       
  2627   return HeapRegion::GrainBytes/HeapWordSize;
       
  2628 }
       
  2629 
       
  2630 size_t G1CollectedHeap::max_capacity() const {
  2621 size_t G1CollectedHeap::max_capacity() const {
  2631   return _g1_reserved.byte_size();
  2622   return _g1_reserved.byte_size();
  2632 }
  2623 }
  2633 
  2624 
  2634 jlong G1CollectedHeap::millis_since_last_gc() {
  2625 jlong G1CollectedHeap::millis_since_last_gc() {