Skip to content
Permalink
Browse files

8241842: Shenandoah: inline ShenandoahHeapRegion::region_number

Reviewed-by: rkennke
  • Loading branch information
shipilev committed Mar 30, 2020
1 parent a8a9fb9 commit 87396af743daab0d2a8725d7bf2f708c1049cd77
@@ -77,10 +77,6 @@ ShenandoahHeapRegion::ShenandoahHeapRegion(HeapWord* start, size_t index, bool c
}
}

size_t ShenandoahHeapRegion::region_number() const {
return _region_number;
}

void ShenandoahHeapRegion::report_illegal_transition(const char *method) {
ResourceMark rm;
stringStream ss;
@@ -353,7 +353,9 @@ class ShenandoahHeapRegion : public CHeapObj<mtGC> {
return _alloc_seq_num.value - 1;
}

size_t region_number() const;
inline size_t region_number() const {
return _region_number;
}

// Allocation (return NULL if full)
inline HeapWord* allocate(size_t word_size, ShenandoahAllocRequest::Type type);

0 comments on commit 87396af

Please sign in to comment.