On Thu, 5 Jan 2023 02:53:54 GMT, David Holmes <dhol...@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

Reply via email to