comparison src/share/vm/gc_implementation/g1/g1AllocRegion.hpp @ 8505:dee7c8b578c7

-Integration of WB Serial Snippets-Integration of G1 WB Snippets (partially working)-Fix allocation bug with -XX:-UseTLAB and -XX:+UseSerialGC
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Thu, 21 Mar 2013 11:30:38 +0100
parents 86b4965f0c9a
children 359f7e70ae7f
comparison
equal deleted inserted replaced
8504:86b4965f0c9a 8505:dee7c8b578c7
171 void set(HeapRegion* alloc_region); 171 void set(HeapRegion* alloc_region);
172 172
173 // Should be called when we want to release the active region which 173 // Should be called when we want to release the active region which
174 // is returned after it's been retired. 174 // is returned after it's been retired.
175 HeapRegion* release(); 175 HeapRegion* release();
176 176 #ifdef GRAAL
177 #if G1_ALLOC_REGION_TRACING 177 HeapWord** top_addr() const {
178 return _alloc_region->top_addr();
179 }
180
181 HeapWord** end_addr() const {
182 return _alloc_region->end_addr();
183 }
184 #endif
185
186 #if G1_ALLOC_REGION_TRACING
178 void trace(const char* str, size_t word_size = 0, HeapWord* result = NULL); 187 void trace(const char* str, size_t word_size = 0, HeapWord* result = NULL);
179 #else // G1_ALLOC_REGION_TRACING 188 #else // G1_ALLOC_REGION_TRACING
180 void trace(const char* str, size_t word_size = 0, HeapWord* result = NULL) { } 189 void trace(const char* str, size_t word_size = 0, HeapWord* result = NULL) { }
181 #endif // G1_ALLOC_REGION_TRACING 190 #endif // G1_ALLOC_REGION_TRACING
182 }; 191 };