RFR: Fix Optimized builds

Aleksey Shipilev shade at openjdk.java.net
Thu Sep 30 08:23:38 UTC 2021


On Thu, 30 Sep 2021 08:09:52 GMT, Ron Pressler <rpressler at openjdk.org> wrote:

> Can you explain this change? Why should fields and methods that only appear in assertions be guarded by !PRODUCT rather than ASSERT?

AFAICS, everything that is `print_*` can be used from debugging printouts, not only from asserts, so it needs to be `!PRODUCT`. I can tell more if you pick any method as the example.

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

PR: https://git.openjdk.java.net/loom/pull/69


More information about the loom-dev mailing list