src/share/vm/gc_implementation/shared/mutableSpace.cpp

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 25
873fd82b133d
equal deleted inserted replaced
0:f90c822e73f8 1:2d8a650513c2
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 #include "precompiled.hpp" 31 #include "precompiled.hpp"
26 #include "utilities/macros.hpp" 32 #include "utilities/macros.hpp"
27 #if INCLUDE_ALL_GCS 33 #if INCLUDE_ALL_GCS
211 return NULL; 217 return NULL;
212 } 218 }
213 } while (true); 219 } while (true);
214 } 220 }
215 221
222 HeapWord* MutableSpace::cas_allocate_oldnuma(size_t size, int node) { }
223
216 // Try to deallocate previous allocation. Returns true upon success. 224 // Try to deallocate previous allocation. Returns true upon success.
217 bool MutableSpace::cas_deallocate(HeapWord *obj, size_t size) { 225 bool MutableSpace::cas_deallocate(HeapWord *obj, size_t size) {
218 HeapWord* expected_top = obj + size; 226 HeapWord* expected_top = obj + size;
219 return (HeapWord*)Atomic::cmpxchg_ptr(obj, top_addr(), expected_top) == expected_top; 227 return (HeapWord*)Atomic::cmpxchg_ptr(obj, top_addr(), expected_top) == expected_top;
220 } 228 }

mercurial