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

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

mercurial