@@ -84,7 +84,7 @@ ParallelScavengeTracer PSScavenge::_gc_tracer;
8484CollectorCounters* PSScavenge::_counters = nullptr ;
8585
8686static void scavenge_roots_work (ParallelRootType::Value root_type, uint worker_id) {
87- assert (ParallelScavengeHeap::heap ()->is_gc_active (), " called outside gc" );
87+ assert (ParallelScavengeHeap::heap ()->is_stw_gc_active (), " called outside gc" );
8888
8989 PSPromotionManager* pm = PSPromotionManager::gc_thread_promotion_manager (worker_id);
9090 PSPromoteRootsClosure roots_to_old_closure (pm);
@@ -115,7 +115,7 @@ static void scavenge_roots_work(ParallelRootType::Value root_type, uint worker_i
115115}
116116
117117static void steal_work (TaskTerminator& terminator, uint worker_id) {
118- assert (ParallelScavengeHeap::heap ()->is_gc_active (), " called outside gc" );
118+ assert (ParallelScavengeHeap::heap ()->is_stw_gc_active (), " called outside gc" );
119119
120120 PSPromotionManager* pm =
121121 PSPromotionManager::gc_thread_promotion_manager (worker_id);
@@ -232,11 +232,11 @@ class ParallelScavengeRefProcProxyTask : public RefProcProxyTask {
232232bool PSScavenge::invoke () {
233233 assert (SafepointSynchronize::is_at_safepoint (), " should be at safepoint" );
234234 assert (Thread::current () == (Thread*)VMThread::vm_thread (), " should be in vm thread" );
235- assert (!ParallelScavengeHeap::heap ()->is_gc_active (), " not reentrant" );
235+ assert (!ParallelScavengeHeap::heap ()->is_stw_gc_active (), " not reentrant" );
236236
237237 ParallelScavengeHeap* const heap = ParallelScavengeHeap::heap ();
238238 PSAdaptiveSizePolicy* policy = heap->size_policy ();
239- IsGCActiveMark mark;
239+ IsSTWGCActiveMark mark;
240240
241241 const bool scavenge_done = PSScavenge::invoke_no_policy ();
242242 const bool need_full_gc = !scavenge_done;
@@ -264,7 +264,7 @@ class PSThreadRootsTaskClosure : public ThreadClosure {
264264public:
265265 PSThreadRootsTaskClosure (uint worker_id) : _worker_id(worker_id) { }
266266 virtual void do_thread (Thread* thread) {
267- assert (ParallelScavengeHeap::heap ()->is_gc_active (), " called outside gc" );
267+ assert (ParallelScavengeHeap::heap ()->is_stw_gc_active (), " called outside gc" );
268268
269269 PSPromotionManager* pm = PSPromotionManager::gc_thread_promotion_manager (_worker_id);
270270 PSScavengeRootsClosure roots_closure (pm);
0 commit comments