The condition for a uniform spherical mass m of radius r to be a black hole is [G= gravitational constant and g= acceleration due to gravity]
(2Gm/r)1/2≤c
(2Gm/r)1/2=c
(2Gm/r)1/2≥c
(gm/r)1/2≥c
Escape velocity for that body ve=2Gmr
ve should be more than or equal to speed of light
i.e. 2Gmr≥c