Skip to content

Commit 14c952f

Browse files
authored
Make function names consistent between Rust and C++ (#182)
1 parent b3307bb commit 14c952f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openjdk/mmtk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct EdgesClosure {
141141
typedef struct {
142142
void (*stop_all_mutators) (void *tls, bool scan_mutators_in_safepoint, MutatorClosure closure);
143143
void (*resume_mutators) (void *tls);
144-
void (*spawn_collector_thread) (void *tls, int kind, void *ctx);
144+
void (*spawn_gc_thread) (void *tls, int kind, void *ctx);
145145
void (*block_for_gc) ();
146146
void (*out_of_memory) (void *tls, MMTkAllocationError err_kind);
147147
void* (*get_next_mutator) ();

openjdk/mmtkUpcalls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void mmtk_resume_mutators(void *tls) {
9393

9494
static const int GC_THREAD_KIND_CONTROLLER = 0;
9595
static const int GC_THREAD_KIND_WORKER = 1;
96-
static void mmtk_spawn_collector_thread(void* tls, int kind, void* ctx) {
96+
static void mmtk_spawn_gc_thread(void* tls, int kind, void* ctx) {
9797
switch (kind) {
9898
case GC_THREAD_KIND_CONTROLLER: {
9999
MMTkContextThread* t = new MMTkContextThread(ctx);
@@ -344,7 +344,7 @@ static void mmtk_enqueue_references(void** objects, size_t len) {
344344
OpenJDK_Upcalls mmtk_upcalls = {
345345
mmtk_stop_all_mutators,
346346
mmtk_resume_mutators,
347-
mmtk_spawn_collector_thread,
347+
mmtk_spawn_gc_thread,
348348
mmtk_block_for_gc,
349349
mmtk_out_of_memory,
350350
mmtk_get_next_mutator,

0 commit comments

Comments
 (0)