hotspot/src/share/vm/gc_interface/collectedHeap.hpp
changeset 25905 04a3d83cc752
parent 24109 e378f2bfaaba
child 26829 26315213bab8
--- a/hotspot/src/share/vm/gc_interface/collectedHeap.hpp	Thu Jul 31 09:23:24 2014 +0200
+++ b/hotspot/src/share/vm/gc_interface/collectedHeap.hpp	Fri Aug 01 15:40:12 2014 -0700
@@ -351,6 +351,12 @@
     fill_with_object(start, pointer_delta(end, start), zap);
   }
 
+  // Return the address "addr" aligned by "alignment_in_bytes" if such
+  // an address is below "end".  Return NULL otherwise.
+  inline static HeapWord* align_allocation_or_fail(HeapWord* addr,
+                                                   HeapWord* end,
+                                                   unsigned short alignment_in_bytes);
+
   // Some heaps may offer a contiguous region for shared non-blocking
   // allocation, via inlined code (by exporting the address of the top and
   // end fields defining the extent of the contiguous allocation region.)