Skip to content

Commit b4f7069

Browse files
committedSep 1, 2023
8315446: G1: Remove unused G1AllocRegion::attempt_allocation
Reviewed-by: iwalulya, tschatzl
1 parent cf02cf3 commit b4f7069

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed
 

‎src/hotspot/share/gc/g1/g1AllocRegion.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ class G1AllocRegion : public CHeapObj<mtGC> {
151151

152152
// The following two are the building blocks for the allocation method.
153153

154-
// First-level allocation: Should be called without holding a
155-
// lock. It will try to allocate lock-free out of the active region,
156-
// or return null if it was unable to.
157-
inline HeapWord* attempt_allocation(size_t word_size);
158154
// Perform an allocation out of the current allocation region, with the given
159155
// minimum and desired size. Returns the actual size allocated (between
160156
// minimum and desired size) in actual_word_size if the allocation has been

‎src/hotspot/share/gc/g1/g1AllocRegion.inline.hpp

-5
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ inline HeapWord* G1AllocRegion::par_allocate(HeapRegion* alloc_region,
6363
return alloc_region->par_allocate(min_word_size, desired_word_size, actual_word_size);
6464
}
6565

66-
inline HeapWord* G1AllocRegion::attempt_allocation(size_t word_size) {
67-
size_t temp;
68-
return attempt_allocation(word_size, word_size, &temp);
69-
}
70-
7166
inline HeapWord* G1AllocRegion::attempt_allocation(size_t min_word_size,
7267
size_t desired_word_size,
7368
size_t* actual_word_size) {

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Sep 1, 2023

@openjdk-notifier[bot]
Please sign in to comment.