equal
deleted
inserted
replaced
349 } |
349 } |
350 static void fill_with_object(HeapWord* start, HeapWord* end, bool zap = true) { |
350 static void fill_with_object(HeapWord* start, HeapWord* end, bool zap = true) { |
351 fill_with_object(start, pointer_delta(end, start), zap); |
351 fill_with_object(start, pointer_delta(end, start), zap); |
352 } |
352 } |
353 |
353 |
|
354 // Return the address "addr" aligned by "alignment_in_bytes" if such |
|
355 // an address is below "end". Return NULL otherwise. |
|
356 inline static HeapWord* align_allocation_or_fail(HeapWord* addr, |
|
357 HeapWord* end, |
|
358 unsigned short alignment_in_bytes); |
|
359 |
354 // Some heaps may offer a contiguous region for shared non-blocking |
360 // Some heaps may offer a contiguous region for shared non-blocking |
355 // allocation, via inlined code (by exporting the address of the top and |
361 // allocation, via inlined code (by exporting the address of the top and |
356 // end fields defining the extent of the contiguous allocation region.) |
362 // end fields defining the extent of the contiguous allocation region.) |
357 |
363 |
358 // This function returns "true" iff the heap supports this kind of |
364 // This function returns "true" iff the heap supports this kind of |