[icall] If Stream:BeginWrite/EndWrite are linked out, they're not overridden (#56559)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Fri, 30 Jul 2021 15:19:40 +0000 (11:19 -0400)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 15:19:40 +0000 (11:19 -0400)
commit09305a8b9a7a388ec7a739e18a522ae9c4d82646
treee2144b73602fc502d11dd211c1d163b77fc30797
parent03211e300de68a97d0036ec0ff6c3ab606c072c9
[icall] If Stream:BeginWrite/EndWrite are linked out, they're not overridden (#56559)

Add the same logic that we already have for BeginRead/EndRead - if we can't
find a vtable slot that has the method in the base class, it must have been
linked out, so a subclass can't possibly override it.

Fixes https://github.com/dotnet/runtime/issues/56315
src/mono/mono/metadata/icall.c