Mercurial > hg > truffle
comparison src/share/vm/memory/threadLocalAllocBuffer.hpp @ 16795:a29e6e7b7a86
Replace hsail donor threads with hsail tlabs
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 12 Aug 2014 16:30:17 -0700 |
parents | f1d1ec9bcf24 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
16794:74c02c90a3f9 | 16795:a29e6e7b7a86 |
---|---|
54 unsigned _number_of_refills; | 54 unsigned _number_of_refills; |
55 unsigned _fast_refill_waste; | 55 unsigned _fast_refill_waste; |
56 unsigned _slow_refill_waste; | 56 unsigned _slow_refill_waste; |
57 unsigned _gc_waste; | 57 unsigned _gc_waste; |
58 unsigned _slow_allocations; | 58 unsigned _slow_allocations; |
59 Thread* _owning_thread; | |
59 | 60 |
60 AdaptiveWeightedAverage _allocation_fraction; // fraction of eden allocated in tlabs | 61 AdaptiveWeightedAverage _allocation_fraction; // fraction of eden allocated in tlabs |
61 | 62 |
62 void accumulate_statistics(); | 63 void accumulate_statistics(); |
63 void initialize_statistics(); | 64 void initialize_statistics(); |
154 | 155 |
155 // Resize tlabs for all threads | 156 // Resize tlabs for all threads |
156 static void resize_all_tlabs(); | 157 static void resize_all_tlabs(); |
157 | 158 |
158 void fill(HeapWord* start, HeapWord* top, size_t new_size); | 159 void fill(HeapWord* start, HeapWord* top, size_t new_size); |
159 void initialize(); | 160 void initialize(Thread* owning_thread); |
160 | 161 |
161 static size_t refill_waste_limit_increment() { return TLABWasteIncrement; } | 162 static size_t refill_waste_limit_increment() { return TLABWasteIncrement; } |
162 | 163 |
163 // Code generation support | 164 // Code generation support |
164 static ByteSize start_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _start); } | 165 static ByteSize start_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _start); } |