comparison src/share/vm/memory/threadLocalAllocBuffer.hpp @ 16668:f1d1ec9bcf24

HSAIL: reset TLAB in donor thread to detect allocation in donor while kernel was active Contributed-by: Tom Deneau <tom.deneau@amd.com>
author Doug Simon <doug.simon@oracle.com>
date Thu, 31 Jul 2014 17:53:06 +0200
parents 4ca6dc0799b6
children a29e6e7b7a86
comparison
equal deleted inserted replaced
16667:1d4313c3ab38 16668:f1d1ec9bcf24
36 // It is thread-private at any time, but maybe multiplexed over 36 // It is thread-private at any time, but maybe multiplexed over
37 // time across multiple threads. The park()/unpark() pair is 37 // time across multiple threads. The park()/unpark() pair is
38 // used to make it available for such multiplexing. 38 // used to make it available for such multiplexing.
39 class ThreadLocalAllocBuffer: public CHeapObj<mtThread> { 39 class ThreadLocalAllocBuffer: public CHeapObj<mtThread> {
40 friend class VMStructs; 40 friend class VMStructs;
41 #ifdef GRAAL
42 friend class HSAILAllocationInfo;
43 #endif
41 private: 44 private:
42 HeapWord* _start; // address of TLAB 45 HeapWord* _start; // address of TLAB
43 HeapWord* _top; // address after last allocation 46 HeapWord* _top; // address after last allocation
44 HeapWord* _pf_top; // allocation prefetch watermark 47 HeapWord* _pf_top; // allocation prefetch watermark
45 HeapWord* _end; // allocation end (excluding alignment_reserve) 48 HeapWord* _end; // allocation end (excluding alignment_reserve)