In the custom vtable mode use a non-static member pointer for Clear instead of the trampoline function. That way the public entry point and the function pointer both end up being the same. Currently, the static function is a separate function than the one called externally, forcing two functions to exist.
Normal mode keeps the existing member function path.
In the future we might change this to a static member function instead to avoid the bloat of the member pointer, but that currently affects normal mode and we want to avoid it for now.
PiperOrigin-RevId: 672552340
pull/18148/head
Protobuf Team Bot6 months agocommitted byCopybara-Service