8140266: Performance loss between jdk8 and jdk9 on Maskfill
Reviewed-by: prr, erikj, lbourges
--- 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, \