Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1AllocRegion.hpp Wed Mar 20 21:39:24 2013 +0100 +++ b/src/share/vm/gc_implementation/g1/g1AllocRegion.hpp Thu Mar 21 11:30:38 2013 +0100 @@ -173,8 +173,17 @@ // Should be called when we want to release the active region which // is returned after it's been retired. HeapRegion* release(); +#ifdef GRAAL + HeapWord** top_addr() const { + return _alloc_region->top_addr(); + } -#if G1_ALLOC_REGION_TRACING + HeapWord** end_addr() const { + return _alloc_region->end_addr(); + } +#endif + + #if G1_ALLOC_REGION_TRACING void trace(const char* str, size_t word_size = 0, HeapWord* result = NULL); #else // G1_ALLOC_REGION_TRACING void trace(const char* str, size_t word_size = 0, HeapWord* result = NULL) { }