[runtime] Avoid allocating interface offsets multiple times. Fixes #28398
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 15 May 2015 01:55:04 +0000 (21:55 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 15 May 2015 02:02:28 +0000 (22:02 -0400)
commit972f726d0379c42e1db4a4b9d92536a4331b0464
tree7a2aae39168f6337b49dd77f5fb25a1388badd0f
parenteac7d992d8a2747cd0b998a0884e7972115bf84c
[runtime] Avoid allocating interface offsets multiple times. Fixes #28398

setup_interface_offsets will be called multiple times. The code was originally
designed to avoid setting up this multiple times but a change to avoid making it assert
when used from SRE made it so that the check to avoid multiple initialization would
effectively make it be initialized multiple times.

See 628e025476f1e8781502eb9ee44bc94911229c36 for the original change.
mono/metadata/class.c