mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
f608095b84
commit
1a4c0a9913
4 changed files with 8 additions and 24 deletions
|
@ -107,9 +107,7 @@ pub extern "C" fn mmtk_builder_default() -> *mut MMTKBuilder {
|
|||
if let Some(threads) = mmtk_builder_default_parse_threads() {
|
||||
if !builder.options.threads.set(threads) {
|
||||
// MMTk will validate it and reject 0.
|
||||
eprintln!(
|
||||
"[FATAL] Failed to set the number of MMTk threads to {threads}"
|
||||
);
|
||||
eprintln!("[FATAL] Failed to set the number of MMTk threads to {threads}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -119,9 +117,7 @@ pub extern "C" fn mmtk_builder_default() -> *mut MMTKBuilder {
|
|||
let heap_max = mmtk_builder_default_parse_heap_max();
|
||||
|
||||
if heap_min >= heap_max {
|
||||
eprintln!(
|
||||
"[FATAL] MMTK_HEAP_MIN({heap_min}) >= MMTK_HEAP_MAX({heap_max})"
|
||||
);
|
||||
eprintln!("[FATAL] MMTK_HEAP_MIN({heap_min}) >= MMTK_HEAP_MAX({heap_max})");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,9 +41,7 @@ impl Collection<Ruby> for VMCollection {
|
|||
.name("MMTk Worker Thread".to_string())
|
||||
.spawn(move || {
|
||||
let ordinal = worker.ordinal;
|
||||
debug!(
|
||||
"Hello! This is MMTk Worker Thread running! ordinal: {ordinal}"
|
||||
);
|
||||
debug!("Hello! This is MMTk Worker Thread running! ordinal: {ordinal}");
|
||||
crate::register_gc_thread(thread::current().id());
|
||||
let ptr_worker = &mut *worker as *mut GCWorker<Ruby>;
|
||||
let gc_thread_tls =
|
||||
|
@ -54,9 +52,7 @@ impl Collection<Ruby> for VMCollection {
|
|||
GCThreadTLS::to_vwt(gc_thread_tls),
|
||||
worker,
|
||||
);
|
||||
debug!(
|
||||
"An MMTk Worker Thread is quitting. Good bye! ordinal: {ordinal}"
|
||||
);
|
||||
debug!("An MMTk Worker Thread is quitting. Good bye! ordinal: {ordinal}");
|
||||
crate::unregister_gc_thread(thread::current().id());
|
||||
})
|
||||
.unwrap(),
|
||||
|
|
|
@ -47,9 +47,7 @@ impl Scanning<Ruby> for VMScanning {
|
|||
);
|
||||
let forwarded_target = object_tracer.trace_object(target_object);
|
||||
if forwarded_target != target_object {
|
||||
trace!(
|
||||
" Forwarded target {target_object} -> {forwarded_target}"
|
||||
);
|
||||
trace!(" Forwarded target {target_object} -> {forwarded_target}");
|
||||
}
|
||||
forwarded_target
|
||||
};
|
||||
|
@ -249,9 +247,7 @@ impl<F: RootsWorkFactory<RubySlot>> GCWork<Ruby> for ScanWbUnprotectedRoots<F> {
|
|||
VMScanning::collect_object_roots_in("wb_unprot_roots", gc_tls, &mut self.factory, || {
|
||||
for object in self.objects.iter().copied() {
|
||||
if object.is_reachable() {
|
||||
debug!(
|
||||
"[wb_unprot_roots] Visiting WB-unprotected object (parent): {object}"
|
||||
);
|
||||
debug!("[wb_unprot_roots] Visiting WB-unprotected object (parent): {object}");
|
||||
(upcalls().scan_object_ruby_style)(object);
|
||||
} else {
|
||||
debug!(
|
||||
|
|
|
@ -112,9 +112,7 @@ impl GCWork<Ruby> for ProcessObjFreeCandidates {
|
|||
if object.is_reachable() {
|
||||
// Forward and add back to the candidate list.
|
||||
let new_object = object.forward();
|
||||
trace!(
|
||||
"Forwarding obj_free candidate: {object} -> {new_object}"
|
||||
);
|
||||
trace!("Forwarding obj_free candidate: {object} -> {new_object}");
|
||||
new_candidates.push(new_object);
|
||||
} else {
|
||||
(upcalls().call_obj_free)(object);
|
||||
|
@ -213,9 +211,7 @@ impl GCWork<Ruby> for UpdateWbUnprotectedObjectsList {
|
|||
if object.is_reachable() {
|
||||
// Forward and add back to the candidate list.
|
||||
let new_object = object.forward();
|
||||
trace!(
|
||||
"Forwarding WB-unprotected object: {object} -> {new_object}"
|
||||
);
|
||||
trace!("Forwarding WB-unprotected object: {object} -> {new_object}");
|
||||
objects.insert(new_object);
|
||||
} else {
|
||||
trace!("Removing WB-unprotected object from list: {object}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue