18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
|
23 */ |
|
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2015. These |
|
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
23 */ |
29 */ |
24 |
30 |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
31 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
32 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
27 |
33 |
128 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes(); } |
134 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes(); } |
129 |
135 |
130 // Allocation (return NULL if full) |
136 // Allocation (return NULL if full) |
131 virtual HeapWord* allocate(size_t word_size); |
137 virtual HeapWord* allocate(size_t word_size); |
132 virtual HeapWord* cas_allocate(size_t word_size); |
138 virtual HeapWord* cas_allocate(size_t word_size); |
|
139 |
|
140 // Allocation for Old NUMA (return NULL if full) |
|
141 virtual HeapWord* cas_allocate_oldnuma(size_t word_size, int node); |
|
142 |
133 // Optional deallocation. Used in NUMA-allocator. |
143 // Optional deallocation. Used in NUMA-allocator. |
134 bool cas_deallocate(HeapWord *obj, size_t size); |
144 bool cas_deallocate(HeapWord *obj, size_t size); |
135 |
145 |
136 // Iteration. |
146 // Iteration. |
137 void oop_iterate(ExtendedOopClosure* cl); |
147 void oop_iterate(ExtendedOopClosure* cl); |