RFR: JDK-8198243: Add build time check for global operator new/delete in object files

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Thu Feb 22 22:17:40 UTC 2018



On 2/22/18 3:00 PM, John Rose wrote:
> On Feb 22, 2018, at 11:41 AM, Erik Joelsson <erik.joelsson at oracle.com> wrote:
>> We could grep for the mangled strings for the operators instead, which is super fast. Problem is just figuring out all the possible combinations.
> Idea:  Do a config-style move where you compile a test file of C++ code,
> strip out all the names from the object file, and throw the rest away.
>
> Even if we just had a hand-maintained list of strings, it might catch
> bugs fast enough to make it worth chasing the bit-rot of the names.
> Basically, have a black list of linker names (per OS–or not?), and
> keep it updated as people notice problems.

This sounds like more work than the feature is worth...

Coleen

>
> — John



More information about the hotspot-runtime-dev mailing list