Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/hotspot/share/gc/parallel/psParallelCompact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "classfile/symbolTable.hpp"
#include "classfile/systemDictionary.hpp"
#include "code/codeCache.hpp"
#include "code/nmethod.hpp"
#include "compiler/oopMap.hpp"
#include "gc/parallel/objectStartArray.inline.hpp"
#include "gc/parallel/parallelArguments.hpp"
Expand Down Expand Up @@ -61,7 +62,6 @@
#include "gc/shared/referenceProcessor.hpp"
#include "gc/shared/referenceProcessorPhaseTimes.hpp"
#include "gc/shared/spaceDecorator.hpp"
#include "gc/shared/strongRootsScope.hpp"
#include "gc/shared/taskTerminator.hpp"
#include "gc/shared/weakProcessor.inline.hpp"
#include "gc/shared/workerPolicy.hpp"
Expand Down Expand Up @@ -1085,15 +1085,17 @@ void steal_marking_work(TaskTerminator& terminator, uint worker_id) {
}

class MarkFromRootsTask : public WorkerTask {
StrongRootsScope _strong_roots_scope; // needed for Threads::possibly_parallel_threads_do
NMethodMarkingScope _nmethod_marking_scope;
ThreadsClaimTokenScope _threads_claim_token_scope;
OopStorageSetStrongParState<false /* concurrent */, false /* is_const */> _oop_storage_set_par_state;
TaskTerminator _terminator;
uint _active_workers;

public:
MarkFromRootsTask(uint active_workers) :
WorkerTask("MarkFromRootsTask"),
_strong_roots_scope(active_workers),
_nmethod_marking_scope(),
_threads_claim_token_scope(),
_terminator(active_workers, ParCompactionManager::marking_stacks()),
_active_workers(active_workers) {}

Expand Down