Skip to content

Commit 03f575e

Browse files
authored
Use initialize_collection() instead of enable_collection() (#119)
1 parent c1bc366 commit 03f575e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mmtk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lazy_static = "1.1"
2020
# - change branch
2121
# - change repo name
2222
# But other changes including adding/removing whitespaces in commented lines may break the CI.
23-
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "08cecbc080cc853383fa96f54436b8ca8026b130" }
23+
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "0ededb3efad9d07d45844712aa46a8d402a8c73f" }
2424
# Uncomment the following to build locally
2525
# mmtk = { path = "../repos/mmtk-core" }
2626

mmtk/src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ pub extern "C" fn start_worker(tls: VMWorkerThread, worker: *mut GCWorker<OpenJD
124124
}
125125

126126
#[no_mangle]
127-
pub extern "C" fn enable_collection(tls: VMThread) {
128-
memory_manager::enable_collection(&SINGLETON, tls)
127+
pub extern "C" fn initialize_collection(tls: VMThread) {
128+
memory_manager::initialize_collection(&SINGLETON, tls)
129129
}
130130

131131
#[no_mangle]

openjdk/mmtk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern void* get_finalized_object();
6868
* Misc
6969
*/
7070
extern char* mmtk_active_barrier();
71-
extern void enable_collection(void *tls);
71+
extern void initialize_collection(void *tls);
7272
extern void gc_init(size_t heap_size);
7373
extern bool will_never_move(void* object);
7474
extern bool process(char* name, char* value);

openjdk/mmtkHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void MMTkHeap::enable_collection() {
131131
// Otherwise it is possible that we schedule finalizer (during a GC) before the finalizer thread is ready.
132132
MMTkFinalizerThread::initialize();
133133

134-
::enable_collection(0);
134+
::initialize_collection(0);
135135
}
136136

137137
////Previously pure abstract methods--

0 commit comments

Comments
 (0)