public static extern void mono_runtime_resource_check_limit(MonoResourceType resource_type, UIntPtr value);
public static extern int mono_runtime_resource_limit(MonoResourceType resource_type, UIntPtr soft_limit, UIntPtr hard_limit);