mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7023069: G1: Introduce symmetric locking in the slow allocation path
7023151: G1: refactor the code that operates on _cur_alloc_region to be re-used for allocs by the GC threads 7018286: G1: humongous allocation attempts should take the GC locker into account First, this change replaces the asymmetric locking scheme in the G1 slow alloc path by a summetric one. Second, it factors out the code that operates on _cur_alloc_region so that it can be re-used for allocations by the GC threads in the future. Reviewed-by: stefank, brutisso, johnc
This commit is contained in:
parent
349d820dd1
commit
3e9fe24ddd
11 changed files with 920 additions and 747 deletions
|
@ -382,6 +382,11 @@ public:
|
|||
return (addr_for(pcard) == p);
|
||||
}
|
||||
|
||||
HeapWord* align_to_card_boundary(HeapWord* p) {
|
||||
jbyte* pcard = byte_for(p + card_size_in_words - 1);
|
||||
return addr_for(pcard);
|
||||
}
|
||||
|
||||
// The kinds of precision a CardTableModRefBS may offer.
|
||||
enum PrecisionStyle {
|
||||
Precise,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue