equal
deleted
inserted
replaced
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 */ |
23 */ |
24 |
24 |
25 #ifndef SHARE_VM_GC_SHARED_COLLECTEDHEAP_INLINE_HPP |
25 #ifndef SHARE_GC_SHARED_COLLECTEDHEAP_INLINE_HPP |
26 #define SHARE_VM_GC_SHARED_COLLECTEDHEAP_INLINE_HPP |
26 #define SHARE_GC_SHARED_COLLECTEDHEAP_INLINE_HPP |
27 |
27 |
28 #include "gc/shared/collectedHeap.hpp" |
28 #include "gc/shared/collectedHeap.hpp" |
29 #include "gc/shared/memAllocator.hpp" |
29 #include "gc/shared/memAllocator.hpp" |
30 #include "oops/oop.inline.hpp" |
30 #include "oops/oop.inline.hpp" |
31 #include "utilities/align.hpp" |
31 #include "utilities/align.hpp" |
80 inline oop CollectedHeap::class_allocate(Klass* klass, int size, TRAPS) { |
80 inline oop CollectedHeap::class_allocate(Klass* klass, int size, TRAPS) { |
81 ClassAllocator allocator(klass, size, THREAD); |
81 ClassAllocator allocator(klass, size, THREAD); |
82 return allocator.allocate(); |
82 return allocator.allocate(); |
83 } |
83 } |
84 |
84 |
85 #endif // SHARE_VM_GC_SHARED_COLLECTEDHEAP_INLINE_HPP |
85 #endif // SHARE_GC_SHARED_COLLECTEDHEAP_INLINE_HPP |