< prev index next >

src/share/vm/gc_implementation/shenandoah/shenandoahFreeSet.hpp

Print this page
rev 10564 : [backport] Refactor allocation path to accept ShenandoahAllocRequest tuple
rev 10620 : [backport] Evac reserve: make sure GC has untouchable space to move the objects into
rev 10621 : [backport] Refactor FreeSet logging: support evac-reserve, denser printouts

*** 48,64 **** void assert_heaplock_not_owned_by_current_thread() const PRODUCT_RETURN; bool is_mutator_free(size_t idx) const; bool is_collector_free(size_t idx) const; ! HeapWord* try_allocate_in(ShenandoahHeapRegion* region, size_t word_size, ShenandoahHeap::AllocType type, bool& in_new_region); ! HeapWord* allocate_single(size_t word_size, ShenandoahHeap::AllocType type, bool& in_new_region); ! HeapWord* allocate_contiguous(size_t words_size); ! void flip_to_mutator(size_t idx); ! void flip_to_gc(size_t idx); void adjust_bounds(); bool touches_bounds(size_t num) const; void increase_used(size_t amount); void clear_internal(); --- 48,64 ---- void assert_heaplock_not_owned_by_current_thread() const PRODUCT_RETURN; bool is_mutator_free(size_t idx) const; bool is_collector_free(size_t idx) const; ! HeapWord* try_allocate_in(ShenandoahHeapRegion* region, ShenandoahHeap::ShenandoahAllocationRequest& req, bool& in_new_region); ! HeapWord* allocate_single(ShenandoahHeap::ShenandoahAllocationRequest& req, bool& in_new_region); ! HeapWord* allocate_contiguous(ShenandoahHeap::ShenandoahAllocationRequest& req); ! void flip_to_gc(ShenandoahHeapRegion* r); + void recompute_bounds(); void adjust_bounds(); bool touches_bounds(size_t num) const; void increase_used(size_t amount); void clear_internal();
*** 79,98 **** void rebuild(); void recycle_trash(); void log_status(); - void log_status_verbose(); size_t capacity() const { return _capacity; } size_t used() const { return _used; } size_t available() const { assert(_used <= _capacity, "must use less than capacity"); return _capacity - _used; } ! HeapWord* allocate(size_t words_size, ShenandoahHeap::AllocType type, bool &in_new_region); size_t unsafe_peek_free() const; void print_on(outputStream* out) const; }; #endif //SHARE_VM_GC_SHENANDOAH_SHENANDOAHFREESET_HPP --- 79,97 ---- void rebuild(); void recycle_trash(); void log_status(); size_t capacity() const { return _capacity; } size_t used() const { return _used; } size_t available() const { assert(_used <= _capacity, "must use less than capacity"); return _capacity - _used; } ! HeapWord* allocate(ShenandoahHeap::ShenandoahAllocationRequest& req, bool& in_new_region); size_t unsafe_peek_free() const; void print_on(outputStream* out) const; }; #endif //SHARE_VM_GC_SHENANDOAH_SHENANDOAHFREESET_HPP
< prev index next >