File tree Expand file tree Collapse file tree 7 files changed +19
-16
lines changed Expand file tree Collapse file tree 7 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ once_cell = "1.10.0"
30
30
# - change branch
31
31
# - change repo name
32
32
# But other changes including adding/removing whitespaces in commented lines may break the CI.
33
- mmtk = { git = " https://github.com/mmtk/mmtk-core.git" , rev = " 2ec37bde7955304f3e4bc5f7bed3fbfba3833cc0 " }
33
+ mmtk = { git = " https://github.com/mmtk/mmtk-core.git" , rev = " f1a0bb7fbec97dd84e35a40e8be01cf5018f2f9e " }
34
34
# Uncomment the following to build locally
35
35
# mmtk = { path = "../repos/mmtk-core" }
36
36
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ pub struct OpenJDK_Upcalls {
98
98
pub referent_offset : extern "C" fn ( ) -> i32 ,
99
99
pub discovered_offset : extern "C" fn ( ) -> i32 ,
100
100
pub dump_object_string : extern "C" fn ( object : ObjectReference ) -> * const c_char ,
101
- pub scan_all_thread_roots : extern "C" fn ( closure : EdgesClosure ) ,
102
- pub scan_thread_roots : extern "C" fn ( closure : EdgesClosure , tls : VMMutatorThread ) ,
101
+ pub scan_roots_in_all_mutator_threads : extern "C" fn ( closure : EdgesClosure ) ,
102
+ pub scan_roots_in_mutator_thread : extern "C" fn ( closure : EdgesClosure , tls : VMMutatorThread ) ,
103
103
pub scan_universe_roots : extern "C" fn ( closure : EdgesClosure ) ,
104
104
pub scan_jni_handle_roots : extern "C" fn ( closure : EdgesClosure ) ,
105
105
pub scan_object_synchronizer_roots : extern "C" fn ( closure : EdgesClosure ) ,
Original file line number Diff line number Diff line change @@ -58,20 +58,23 @@ impl Scanning<OpenJDK> for VMScanning {
58
58
// TODO
59
59
}
60
60
61
- fn scan_thread_roots ( _tls : VMWorkerThread , mut factory : impl RootsWorkFactory < OpenJDKEdge > ) {
61
+ fn scan_roots_in_all_mutator_threads (
62
+ _tls : VMWorkerThread ,
63
+ mut factory : impl RootsWorkFactory < OpenJDKEdge > ,
64
+ ) {
62
65
unsafe {
63
- ( ( * UPCALLS ) . scan_all_thread_roots ) ( to_edges_closure ( & mut factory) ) ;
66
+ ( ( * UPCALLS ) . scan_roots_in_all_mutator_threads ) ( to_edges_closure ( & mut factory) ) ;
64
67
}
65
68
}
66
69
67
- fn scan_thread_root (
70
+ fn scan_roots_in_mutator_thread (
68
71
_tls : VMWorkerThread ,
69
72
mutator : & ' static mut Mutator < OpenJDK > ,
70
73
mut factory : impl RootsWorkFactory < OpenJDKEdge > ,
71
74
) {
72
75
let tls = mutator. get_tls ( ) ;
73
76
unsafe {
74
- ( ( * UPCALLS ) . scan_thread_roots ) ( to_edges_closure ( & mut factory) , tls) ;
77
+ ( ( * UPCALLS ) . scan_roots_in_mutator_thread ) ( to_edges_closure ( & mut factory) , tls) ;
75
78
}
76
79
}
77
80
Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ typedef struct {
163
163
int (* referent_offset ) ();
164
164
int (* discovered_offset ) ();
165
165
char * (* dump_object_string ) (void * object );
166
- void (* scan_all_thread_roots )(EdgesClosure closure );
167
- void (* scan_thread_roots )(EdgesClosure closure , void * tls );
166
+ void (* scan_roots_in_all_mutator_threads )(EdgesClosure closure );
167
+ void (* scan_roots_in_mutator_thread )(EdgesClosure closure , void * tls );
168
168
void (* scan_universe_roots ) (EdgesClosure closure );
169
169
void (* scan_jni_handle_roots ) (EdgesClosure closure );
170
170
void (* scan_object_synchronizer_roots ) (EdgesClosure closure );
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ void MMTkHeap::scan_vm_thread_roots(OopClosure& cl) {
415
415
VMThread::vm_thread ()->oops_do (&cl, NULL );
416
416
}
417
417
418
- void MMTkHeap::scan_thread_roots (OopClosure& cl) {
418
+ void MMTkHeap::scan_roots_in_all_mutator_threads (OopClosure& cl) {
419
419
ResourceMark rm;
420
420
Threads::possibly_parallel_oops_do (false , &cl, NULL );
421
421
}
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ class MMTkHeap : public CollectedHeap {
195
195
196
196
void scan_roots (OopClosure& cl);
197
197
198
- void scan_thread_roots (OopClosure& cl);
198
+ void scan_roots_in_all_mutator_threads (OopClosure& cl);
199
199
200
200
void scan_universe_roots (OopClosure& cl);
201
201
void scan_jni_handle_roots (OopClosure& cl);
Original file line number Diff line number Diff line change @@ -184,12 +184,12 @@ static void mmtk_get_mutators(MutatorClosure closure) {
184
184
}
185
185
}
186
186
187
- static void mmtk_scan_all_thread_roots (EdgesClosure closure) {
187
+ static void mmtk_scan_roots_in_all_mutator_threads (EdgesClosure closure) {
188
188
MMTkRootsClosure2 cl (closure);
189
- MMTkHeap::heap ()->scan_thread_roots (cl);
189
+ MMTkHeap::heap ()->scan_roots_in_all_mutator_threads (cl);
190
190
}
191
191
192
- static void mmtk_scan_thread_roots (EdgesClosure closure, void * tls) {
192
+ static void mmtk_scan_roots_in_mutator_thread (EdgesClosure closure, void * tls) {
193
193
ResourceMark rm;
194
194
JavaThread* thread = (JavaThread*) tls;
195
195
MMTkRootsClosure2 cl (closure);
@@ -334,8 +334,8 @@ OpenJDK_Upcalls mmtk_upcalls = {
334
334
referent_offset,
335
335
discovered_offset,
336
336
dump_object_string,
337
- mmtk_scan_all_thread_roots ,
338
- mmtk_scan_thread_roots ,
337
+ mmtk_scan_roots_in_all_mutator_threads ,
338
+ mmtk_scan_roots_in_mutator_thread ,
339
339
mmtk_scan_universe_roots,
340
340
mmtk_scan_jni_handle_roots,
341
341
mmtk_scan_object_synchronizer_roots,
You can’t perform that action at this time.
0 commit comments