RFR: JDK-8298908: Instrument Metaspace for ASan [v2]

Thomas Stuefe stuefe at openjdk.org
Mon Jan 9 08:10:58 UTC 2023


On Thu, 5 Jan 2023 02:53:54 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> This helps with maintenance. All builds will still compile the `addr` and `size` statements, ensuring they are valid, but will strip them when ASan is not enabled. In the event that refactoring occurs and one of the statements becomes invalid due to a method renaming for example, but the refactorer misses it, the build will still fail.
>> 
>> Mostly to help avoid requiring people to build with ASan to ensure it still works.
>
> Ah I see.

I like this, but would compilers not complain about unused statements?

-------------

PR: https://git.openjdk.org/jdk/pull/11702



More information about the build-dev mailing list