< prev index next >
src/share/vm/gc/shared/plab.inline.hpp
Print this page
rev 8362 : [mq]: hotspot
*** 20,34 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_PLAB_INLINE_HPP
! #define SHARE_VM_GC_IMPLEMENTATION_SHARED_PLAB_INLINE_HPP
! #include "gc_implementation/shared/plab.hpp"
! #include "gc_interface/collectedHeap.inline.hpp"
HeapWord* PLAB::allocate_aligned(size_t word_sz, unsigned short alignment_in_bytes) {
HeapWord* res = CollectedHeap::align_allocation_or_fail(_top, _end, alignment_in_bytes);
if (res == NULL) {
--- 20,34 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_GC_SHARED_PLAB_INLINE_HPP
! #define SHARE_VM_GC_SHARED_PLAB_INLINE_HPP
! #include "gc/shared/collectedHeap.inline.hpp"
! #include "gc/shared/plab.hpp"
HeapWord* PLAB::allocate_aligned(size_t word_sz, unsigned short alignment_in_bytes) {
HeapWord* res = CollectedHeap::align_allocation_or_fail(_top, _end, alignment_in_bytes);
if (res == NULL) {
*** 39,44 ****
// can be used below.
_top = res;
return allocate(word_sz);
}
! #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_PLAB_INLINE_HPP
--- 39,44 ----
// can be used below.
_top = res;
return allocate(word_sz);
}
! #endif // SHARE_VM_GC_SHARED_PLAB_INLINE_HPP
< prev index next >