Skip to content

Commit

Permalink
Remove coordinator thread
Browse files Browse the repository at this point in the history
MMTk PR: mmtk/mmtk-core#1067

Change-Id: I316728aeefd0127b5d1fc1d85e464062cc629aa8
  • Loading branch information
k-sareen committed Jul 16, 2024
1 parent 642b25f commit b048f7f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
11 changes: 0 additions & 11 deletions runtime/mmtk-art/mmtk_gc_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,6 @@ void MmtkCollectorThread::Run() {
mmtk_start_gc_worker_thread((void*) thread_, (void*) context_);
}

MmtkControllerThread::MmtkControllerThread(const std::string& name,
void* context)
: MmtkWorkerThread(name, context) {
CreateWorkerThread(this);
}

void MmtkControllerThread::Run() {
LOG(INFO) << "Starting MmtkControllerThread " << thread_ << " with context " << context_;
mmtk_start_gc_controller_thread((void*) thread_, (void*) context_);
}

MmtkVmCompanionThread::MmtkVmCompanionThread(const std::string& name)
: MmtkWorkerThread(name, nullptr),
current_state_(StwState::Resumed),
Expand Down
10 changes: 0 additions & 10 deletions runtime/mmtk-art/mmtk_gc_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@ class MmtkCollectorThread : MmtkWorkerThread {
void Run() override;
};

// MMTk GC Controller thread. There is only a single such thread. It is
// responsible for coordinating garbage collection.
class MmtkControllerThread : MmtkWorkerThread {
public:
MmtkControllerThread(const std::string& name, void* context);

protected:
void Run() override;
};

enum StwState {
Resumed,
Suspended,
Expand Down
4 changes: 0 additions & 4 deletions runtime/mmtk-art/mmtk_upcalls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ static void block_for_gc(void* tls) {
static void spawn_gc_thread(void* tls, GcThreadKind kind, void* ctx) {
UNUSED(tls);
switch (kind) {
case MmtkGcController: {
new art::MmtkControllerThread("MMTk Controller Context Thread", ctx);
break;
}
case MmtkGcWorker: {
new art::MmtkCollectorThread("MMTk Collector Thread", ctx);
break;
Expand Down

0 comments on commit b048f7f

Please sign in to comment.