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

John Rose john.r.rose at oracle.com
Thu Feb 22 20:00:03 UTC 2018

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.

— John

More information about the build-dev mailing list