Skip to content

Commit b2a374a

Browse files
committed
make internal
1 parent 898d5ed commit b2a374a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/mono/System.Private.CoreLib/src/System/Object.Mono.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public partial class Object
1515
protected extern object MemberwiseClone();
1616

1717
[UnsafeAccessor(UnsafeAccessorKind.Method, Name = nameof(Finalize))]
18-
private static extern void CallFinalize(object o);
19-
private void GuardedFinalize()
18+
internal static extern void CallFinalize(object o);
19+
internal void GuardedFinalize()
2020
{
2121
try
2222
{

src/mono/mono/metadata/gc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ mono_gc_run_finalize (void *obj, void *data)
307307
finalize_ptr = mono_compile_method_checked (finalize_method, error);
308308
mono_error_assert_ok (error); /* expect this not to fail */
309309
}
310+
311+
RuntimeInvokeFunction runtime_invoke = finalize_runtime_invoke;
310312
#endif
311313

312314
mono_runtime_class_init_full (o->vtable, error);
@@ -327,7 +329,7 @@ mono_gc_run_finalize (void *obj, void *data)
327329
params [0] = NULL;
328330
mono_runtime_try_invoke (finalize_method, o, params, &exc, error);
329331
#else
330-
finalize_runtime_invoke (o, NULL, &exc, finalize_ptr);
332+
runtime_invoke (o, NULL, &exc, finalize_ptr);
331333
#endif
332334

333335
MONO_PROFILER_RAISE (gc_finalized_object, (o));

0 commit comments

Comments
 (0)