jdk/make/lib/Awt2dLibraries.gmk
changeset 43082 cf17b8a17dc0
parent 42747 807791cafb87
child 43090 65e2b10e8e80
--- 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, \