Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp @ 3774:c9ca3f51cf41
6994322: Remove the is_tlab and is_noref / is_large_noref parameters from the CollectedHeap
Summary: Remove two unused parameters from the mem_allocate() method and update its uses accordingly.
Reviewed-by: stefank, johnc
author | tonyp |
---|---|
date | Thu, 16 Jun 2011 15:51:57 -0400 |
parents | 6747fd0512e0 |
children | 53074c2c4600 |
comparison
equal
deleted
inserted
replaced
3773:5130fa1b24f1 | 3774:c9ca3f51cf41 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
163 // Memory allocation. "gc_time_limit_was_exceeded" will | 163 // Memory allocation. "gc_time_limit_was_exceeded" will |
164 // be set to true if the adaptive size policy determine that | 164 // be set to true if the adaptive size policy determine that |
165 // an excessive amount of time is being spent doing collections | 165 // an excessive amount of time is being spent doing collections |
166 // and caused a NULL to be returned. If a NULL is not returned, | 166 // and caused a NULL to be returned. If a NULL is not returned, |
167 // "gc_time_limit_was_exceeded" has an undefined meaning. | 167 // "gc_time_limit_was_exceeded" has an undefined meaning. |
168 | |
169 HeapWord* mem_allocate(size_t size, | 168 HeapWord* mem_allocate(size_t size, |
170 bool is_noref, | |
171 bool is_tlab, | |
172 bool* gc_overhead_limit_was_exceeded); | 169 bool* gc_overhead_limit_was_exceeded); |
173 HeapWord* failed_mem_allocate(size_t size, bool is_tlab); | 170 |
171 // Allocation attempt(s) during a safepoint. It should never be called | |
172 // to allocate a new TLAB as this allocation might be satisfied out | |
173 // of the old generation. | |
174 HeapWord* failed_mem_allocate(size_t size); | |
174 | 175 |
175 HeapWord* permanent_mem_allocate(size_t size); | 176 HeapWord* permanent_mem_allocate(size_t size); |
176 HeapWord* failed_permanent_mem_allocate(size_t size); | 177 HeapWord* failed_permanent_mem_allocate(size_t size); |
177 | 178 |
178 // Support for System.gc() | 179 // Support for System.gc() |
192 // maximum_compaction is true, it will compact everything and clear all soft | 193 // maximum_compaction is true, it will compact everything and clear all soft |
193 // references. | 194 // references. |
194 inline void invoke_scavenge(); | 195 inline void invoke_scavenge(); |
195 inline void invoke_full_gc(bool maximum_compaction); | 196 inline void invoke_full_gc(bool maximum_compaction); |
196 | 197 |
197 size_t large_typearray_limit() { return FastAllocateSizeLimit; } | |
198 | |
199 bool supports_inline_contig_alloc() const { return !UseNUMA; } | 198 bool supports_inline_contig_alloc() const { return !UseNUMA; } |
200 | 199 |
201 HeapWord** top_addr() const { return !UseNUMA ? young_gen()->top_addr() : (HeapWord**)-1; } | 200 HeapWord** top_addr() const { return !UseNUMA ? young_gen()->top_addr() : (HeapWord**)-1; } |
202 HeapWord** end_addr() const { return !UseNUMA ? young_gen()->end_addr() : (HeapWord**)-1; } | 201 HeapWord** end_addr() const { return !UseNUMA ? young_gen()->end_addr() : (HeapWord**)-1; } |
203 | 202 |