Mercurial > hg > graal-compiler
comparison src/share/vm/gc_interface/collectedHeap.hpp @ 20317:ee019285a52c
8031323: Optionally align objects copied to survivor spaces
Reviewed-by: brutisso, tschatzl
author | jmasa |
---|---|
date | Mon, 04 Aug 2014 10:48:10 -0700 |
parents | 1772223a25a2 |
children | 439f0d76cff3 |
comparison
equal
deleted
inserted
replaced
20316:3c048df3ef8b | 20317:ee019285a52c |
---|---|
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 |