Integrated: 8287830: gtest fails to compile after JDK-8287661

Jie Fu jiefu at openjdk.java.net
Sat Jun 4 06:50:34 UTC 2022


On Sat, 4 Jun 2022 04:54:14 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all,
> 
> gtest fails to compile when configured with `--with-debug-level=optimized`.
> 
> This is because for `optimized` no `PRODUCT` is defined.
> 
> ifeq ($(DEBUG_LEVEL), release)
>   # For hotspot, release builds differ internally between "optimized" and "product"
>   # in that "optimize" does not define PRODUCT.
>   ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
>     JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
>   endif
> 
> 
> And the `test` log tag is only defined for DEBUG versions.
> 
>   LOG_TAG(table) \
>   LOG_TAG(task) \
>   DEBUG_ONLY(LOG_TAG(test)) \
>   LOG_TAG(thread) \
>   LOG_TAG(throttle) \
> 
> 
> So let's fix it.
> 
> Thanks.
> Best regards,
> Jie

This pull request has now been integrated.

Changeset: a113e166
Author:    Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/a113e166e91b9b3d3f74a284888a5135b48dad44
Stats:     3 lines in 1 file changed: 0 ins; 0 del; 3 mod

8287830: gtest fails to compile after JDK-8287661

Reviewed-by: shade

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

PR: https://git.openjdk.java.net/jdk/pull/9029


More information about the hotspot-dev mailing list