Skip to content

Commit

Permalink
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion machine/memory/immix_collector.cpp
Original file line number Diff line number Diff line change
@@ -354,7 +354,7 @@ namespace memory {

diagnostics_.collections_++;

memory_->shared().diagnostics()->report(&diagnostics_);
memory_->shared().report_diagnostics(&diagnostics_);
}

allocator_.restart(diagnostics_.percentage_,
11 changes: 7 additions & 4 deletions machine/shared_state.hpp
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
#include "memory/root_buffer.hpp"

#include "internal_threads.hpp"
#include "diagnostics.hpp"
#include "globals.hpp"
#include "symbol_table.hpp"
#include "thread_nexus.hpp"
@@ -47,10 +48,6 @@ namespace rubinius {
class Metrics;
}

namespace diagnostics {
class Diagnostics;
}

namespace memory {
class FinalizerThread;
class ManagedThread;
@@ -226,6 +223,12 @@ namespace rubinius {

diagnostics::Diagnostics* start_diagnostics(STATE);

void report_diagnostics(diagnostics::DiagnosticsData* data) {
if(diagnostics_) {
diagnostics_->report(data);
}
}

Environment* env() const {
return env_;
}

0 comments on commit b09f69f

Please sign in to comment.