Skip to content

Commit e65aebd

Browse files
committed
refactor(pon-runtime/capi): removed temporary diagnostic logging
- Removed temporary debug code from the vectorcall fallback path.
1 parent 7e025f7 commit e65aebd

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

‎pon-runtime/src/capi/object_.rs‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,26 +1040,6 @@ pub(crate) unsafe extern "C" fn capi_vectorcall_call(
10401040
);
10411041
}
10421042
let mut positional = positional;
1043-
{
1044-
// TEMP diag
1045-
static DIAG_COUNT: core::sync::atomic::AtomicUsize =
1046-
core::sync::atomic::AtomicUsize::new(0);
1047-
if DIAG_COUNT.fetch_add(1, core::sync::atomic::Ordering::Relaxed) < 6 {
1048-
let raw_ty = unsafe { (*callable).ob_type.cast_mut() };
1049-
let norm =
1050-
twin::registered_native_of_foreign(raw_ty.cast()).unwrap_or(raw_ty);
1051-
eprintln!(
1052-
"[dbg] vc fallback callable {:p} raw_ty {:p} norm {:p} name {:?} tp_call_is_vc {}",
1053-
callable,
1054-
raw_ty,
1055-
norm,
1056-
unsafe { crate::types::dict::type_name(callable) },
1057-
unsafe { (*norm).tp_call }
1058-
.map(|call| call as *const () == capi_vectorcall_call as *const ())
1059-
.unwrap_or(false),
1060-
);
1061-
}
1062-
}
10631043
if kwargs.is_null() {
10641044
unsafe { call_with_argv(callable, argv_ptr(&mut positional), positional.len()) }
10651045
} else {

0 commit comments

Comments
 (0)