33 |
33 |
34 // ThreadLocalAllocBuffer: a descriptor for thread-local storage used by |
34 // ThreadLocalAllocBuffer: a descriptor for thread-local storage used by |
35 // the threads for allocation. |
35 // the threads for allocation. |
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 avaiable 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 private: |
41 private: |
42 HeapWord* _start; // address of TLAB |
42 HeapWord* _start; // address of TLAB |
43 HeapWord* _top; // address after last allocation |
43 HeapWord* _top; // address after last allocation |