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. |
|
29 */ |
23 */ |
30 |
24 |
31 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
32 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MUTABLESPACE_HPP |
33 |
27 |
134 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes(); } |
128 virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes(); } |
135 |
129 |
136 // Allocation (return NULL if full) |
130 // Allocation (return NULL if full) |
137 virtual HeapWord* allocate(size_t word_size); |
131 virtual HeapWord* allocate(size_t word_size); |
138 virtual HeapWord* cas_allocate(size_t word_size); |
132 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 |
|
143 // Optional deallocation. Used in NUMA-allocator. |
133 // Optional deallocation. Used in NUMA-allocator. |
144 bool cas_deallocate(HeapWord *obj, size_t size); |
134 bool cas_deallocate(HeapWord *obj, size_t size); |
145 |
135 |
146 // Iteration. |
136 // Iteration. |
147 void oop_iterate(ExtendedOopClosure* cl); |
137 void oop_iterate(ExtendedOopClosure* cl); |