8140266: Performance loss between jdk8 and jdk9 on Maskfill
authorserb
Wed, 28 Dec 2016 17:11:32 +0300
changeset 43082 cf17b8a17dc0
parent 43081 66a49615076d
child 43083 8ca2c0fc9537
8140266: Performance loss between jdk8 and jdk9 on Maskfill Reviewed-by: prr, erikj, lbourges
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, \