# HG changeset patch # User serb # Date 1482934292 -10800 # Node ID cf17b8a17dc0b0abd5fdbe88b0726df4bc390738 # Parent 66a49615076d4a1da101de3e8ed2d47c44fd869d 8140266: Performance loss between jdk8 and jdk9 on Maskfill Reviewed-by: prr, erikj, lbourges diff -r 66a49615076d -r cf17b8a17dc0 jdk/make/lib/Awt2dLibraries.gmk --- a/jdk/make/lib/Awt2dLibraries.gmk Wed Dec 28 12:43:57 2016 +0300 +++ b/jdk/make/lib/Awt2dLibraries.gmk Wed Dec 28 17:11:32 2016 +0300 @@ -222,6 +222,8 @@ # applies to debug builds. ifeq ($(TOOLCHAIN_TYPE), gcc) BUILD_LIBAWT_debug_mem.c_CFLAGS := -w + # This option improves performance of MaskFill in Java2D by 20% for some gcc + LIBAWT_CFLAGS += -fgcse-after-reload endif $(eval $(call SetupNativeCompilation,BUILD_LIBAWT, \