Skip to content

Commit 344aa0b

Browse files
author
Nathan Ricci
committed
Removed more debugging.
1 parent 7447799 commit 344aa0b

File tree

4 files changed

+1
-24
lines changed

4 files changed

+1
-24
lines changed

src/mono/mono/metadata/marshal-ilgen.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,10 +2719,8 @@ get_marshal_cb (void)
27192719
{
27202720
if (G_UNLIKELY (!ilgen_cb_inited)) {
27212721
#ifdef ENABLE_ILGEN
2722-
printf("!!!marshal-ilgen.c: get_marshal_cb: ENABLE_ILGEN\n");
27232722
mono_marshal_ilgen_init ();
27242723
#else
2725-
printf("!!!marshal-ilgen.c: get_marshal_cb: NO ENABLE_ILGEN\n");
27262724
mono_marshal_noilgen_init_heavyweight ();
27272725
#endif
27282726
}
@@ -2808,7 +2806,6 @@ mono_emit_marshal_ilgen (EmitMarshalContext *m, int argnum, MonoType *t,
28082806
void
28092807
mono_marshal_ilgen_init (void)
28102808
{
2811-
printf("!!!naricc_debug!!! mono_marshal_ilgen_init called.\n");
28122809
MonoMarshalIlgenCallbacks cb;
28132810
cb.version = MONO_MARSHAL_CALLBACKS_VERSION;
28142811
cb.emit_marshal_array = emit_marshal_array_ilgen;

src/mono/mono/metadata/marshal-lightweight.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -928,10 +928,6 @@ emit_native_wrapper_ilgen (MonoImage *image, MonoMethodBuilder *mb, MonoMethodSi
928928
m.orig_conv_args = g_newa (int, sig->param_count + 1);
929929

930930
for (i = 0; i < sig->param_count; i ++) {
931-
if (naricc_global_debug_get())
932-
{
933-
printf("!!!naricc_debug!!!: mono_emit_marshal params: i: %d, param_shift: %d\n", i, param_shift);
934-
}
935931
tmp_locals [i] = mono_emit_marshal (&m, i + param_shift, sig->params [i], mspecs [i + 1], 0, &csig->params [i], MARSHAL_ACTION_CONV_IN);
936932
}
937933

src/mono/mono/metadata/marshal.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,15 +3421,6 @@ mono_marshal_get_native_wrapper (MonoMethod *method, gboolean check_exceptions,
34213421
return res;
34223422
}
34233423

3424-
if (!strcmp (method->name, "DeflateInit2_"))
3425-
{
3426-
naricc_global_debug_set(TRUE);
3427-
}
3428-
else
3429-
{
3430-
naricc_global_debug_set(FALSE);
3431-
}
3432-
34333424
mb = mono_mb_new (method->klass, method->name, MONO_WRAPPER_MANAGED_TO_NATIVE);
34343425

34353426
mb->method->save_lmf = 1;
@@ -3555,11 +3546,7 @@ mono_marshal_get_native_wrapper (MonoMethod *method, gboolean check_exceptions,
35553546
if (mspecs [i])
35563547
mono_metadata_free_marshal_spec (mspecs [i]);
35573548
g_free (mspecs);
3558-
3559-
if (!strcmp (method->name, "DeflateInit2_")){
3560-
mono_method_print_code (res);
3561-
}
3562-
3549+
35633550
return res;
35643551
}
35653552

src/mono/wasm/runtime/driver.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,8 @@ mono_wasm_load_runtime (const char *unused, int debug_level)
568568
#endif
569569
#ifdef NEED_INTERP
570570
mono_ee_interp_init (interp_opts);
571-
572571
mono_marshal_lightweight_init ();
573572
mono_marshal_ilgen_init();
574-
575-
576573
mono_method_builder_ilgen_init ();
577574
mono_sgen_mono_ilgen_init ();
578575
#endif

0 commit comments

Comments
 (0)