Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ internal static bool ObjectHasReferences(object obj)
return RuntimeTypeHandle.HasReferences((obj.GetType() as RuntimeType)!);
}

// A conservative GC already scans the stack looking for potential object-refs or by-refs.
// Mono uses a conservative GC so there is no need for this API to be full implemented.
internal unsafe ref struct GCFrameRegistration
{
public GCFrameRegistration(void* allocation, uint elemCount, bool areByRefs = true)
{
}
}

internal static unsafe void RegisterForGCReporting(GCFrameRegistration* pRegistration) { /* nop */ }
internal static unsafe void UnregisterForGCReporting(GCFrameRegistration* pRegistration) { /* nop */ }

public static object GetUninitializedObject(
// This API doesn't call any constructors, but the type needs to be seen as constructed.
// A type is seen as constructed if a constructor is kept.
Expand Down