Skip to content

Commit

Permalink
keep main thread in gen2 mode
Browse files Browse the repository at this point in the history
as the other functions use its tc to allocate
objects.
  • Loading branch information
timo committed Feb 18, 2018
1 parent c6d1115 commit b6e8639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profiler/instrument.c
Expand Up @@ -571,7 +571,6 @@ void MVM_profile_dump_instrumented_data(MVMThreadContext *tc) {
MVM_profile_log_exit(tc);

fprintf(stderr, "took data from main thread\n");
MVM_gc_allocate_gen2_default_clear(tc);

/* Get all thread's data */
thread = tc->instance->threads;
Expand Down Expand Up @@ -600,6 +599,7 @@ void MVM_profile_dump_instrumented_data(MVMThreadContext *tc) {
}
fprintf(stderr, "done taking data\n");
}
MVM_gc_allocate_gen2_default_clear(tc);
}

/* Dumps data from all threads into an array of per-thread data. */
Expand Down

0 comments on commit b6e8639

Please sign in to comment.