Skip to content

Commit b048f7f

Browse files
committed
Remove coordinator thread
MMTk PR: mmtk/mmtk-core#1067 Change-Id: I316728aeefd0127b5d1fc1d85e464062cc629aa8
1 parent 642b25f commit b048f7f

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

runtime/mmtk-art/mmtk_gc_thread.cc

-11
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,6 @@ void MmtkCollectorThread::Run() {
102102
mmtk_start_gc_worker_thread((void*) thread_, (void*) context_);
103103
}
104104

105-
MmtkControllerThread::MmtkControllerThread(const std::string& name,
106-
void* context)
107-
: MmtkWorkerThread(name, context) {
108-
CreateWorkerThread(this);
109-
}
110-
111-
void MmtkControllerThread::Run() {
112-
LOG(INFO) << "Starting MmtkControllerThread " << thread_ << " with context " << context_;
113-
mmtk_start_gc_controller_thread((void*) thread_, (void*) context_);
114-
}
115-
116105
MmtkVmCompanionThread::MmtkVmCompanionThread(const std::string& name)
117106
: MmtkWorkerThread(name, nullptr),
118107
current_state_(StwState::Resumed),

runtime/mmtk-art/mmtk_gc_thread.h

-10
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,6 @@ class MmtkCollectorThread : MmtkWorkerThread {
7272
void Run() override;
7373
};
7474

75-
// MMTk GC Controller thread. There is only a single such thread. It is
76-
// responsible for coordinating garbage collection.
77-
class MmtkControllerThread : MmtkWorkerThread {
78-
public:
79-
MmtkControllerThread(const std::string& name, void* context);
80-
81-
protected:
82-
void Run() override;
83-
};
84-
8575
enum StwState {
8676
Resumed,
8777
Suspended,

runtime/mmtk-art/mmtk_upcalls.cc

-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ static void block_for_gc(void* tls) {
7575
static void spawn_gc_thread(void* tls, GcThreadKind kind, void* ctx) {
7676
UNUSED(tls);
7777
switch (kind) {
78-
case MmtkGcController: {
79-
new art::MmtkControllerThread("MMTk Controller Context Thread", ctx);
80-
break;
81-
}
8278
case MmtkGcWorker: {
8379
new art::MmtkCollectorThread("MMTk Collector Thread", ctx);
8480
break;

0 commit comments

Comments
 (0)