comparison src/hotspot/share/gc/g1/g1CollectedHeap.cpp @ 51970:d56dd9798d54

8208611: Refactor SATBMarkQueue filtering to allow GC-specific filters Summary: Add SATBMarkQueueFilter. Reviewed-by: tschatzl, eosterlund, rkennke
author kbarrett
date Wed, 01 Aug 2018 19:14:04 -0400
parents bd2e3c3b4547
children c25572739e7c
comparison
equal deleted inserted replaced
90:d7cb966a3490 91:924ad69376a1
50 #include "gc/g1/g1Policy.hpp" 50 #include "gc/g1/g1Policy.hpp"
51 #include "gc/g1/g1RegionToSpaceMapper.hpp" 51 #include "gc/g1/g1RegionToSpaceMapper.hpp"
52 #include "gc/g1/g1RemSet.hpp" 52 #include "gc/g1/g1RemSet.hpp"
53 #include "gc/g1/g1RootClosures.hpp" 53 #include "gc/g1/g1RootClosures.hpp"
54 #include "gc/g1/g1RootProcessor.hpp" 54 #include "gc/g1/g1RootProcessor.hpp"
55 #include "gc/g1/g1SATBMarkQueueFilter.hpp"
55 #include "gc/g1/g1StringDedup.hpp" 56 #include "gc/g1/g1StringDedup.hpp"
56 #include "gc/g1/g1ThreadLocalData.hpp" 57 #include "gc/g1/g1ThreadLocalData.hpp"
57 #include "gc/g1/g1YCTypes.hpp" 58 #include "gc/g1/g1YCTypes.hpp"
58 #include "gc/g1/g1YoungRemSetSamplingThread.hpp" 59 #include "gc/g1/g1YoungRemSetSamplingThread.hpp"
59 #include "gc/g1/heapRegion.inline.hpp" 60 #include "gc/g1/heapRegion.inline.hpp"
1666 } 1667 }
1667 1668
1668 // Perform any initialization actions delegated to the policy. 1669 // Perform any initialization actions delegated to the policy.
1669 g1_policy()->init(this, &_collection_set); 1670 g1_policy()->init(this, &_collection_set);
1670 1671
1671 G1BarrierSet::satb_mark_queue_set().initialize(SATB_Q_CBL_mon, 1672 G1SATBMarkQueueFilter* satb_filter = new G1SATBMarkQueueFilter(this);
1673 G1BarrierSet::satb_mark_queue_set().initialize(satb_filter,
1674 SATB_Q_CBL_mon,
1672 SATB_Q_FL_lock, 1675 SATB_Q_FL_lock,
1673 G1SATBProcessCompletedThreshold, 1676 G1SATBProcessCompletedThreshold,
1674 Shared_SATB_Q_lock); 1677 Shared_SATB_Q_lock);
1675 1678
1676 jint ecode = initialize_concurrent_refinement(); 1679 jint ecode = initialize_concurrent_refinement();