diff mx/mx_graal.py @ 20967:f61ff7f01bc2

Add CompileTheWorldExcludeMethodFilter to CTW and remove sun.awt.X11 classes from default ctw mx target.
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Wed, 15 Apr 2015 16:30:45 +0200
parents 10766b486cbb
children 4213d02d95b5 0a4bbeae6e31
line wrap: on
line diff
--- a/mx/mx_graal.py	Wed Apr 15 13:49:38 2015 +0200
+++ b/mx/mx_graal.py	Wed Apr 15 16:30:45 2015 +0200
@@ -1482,6 +1482,7 @@
         jar = os.path.abspath(args.jar)
     else:
         jar = join(_jdk(installJars=False), 'jre', 'lib', 'rt.jar')
+        vmargs.append('-G:CompileTheWorldExcludeMethodFilter=sun.awt.X11.*.*')
 
     vmargs += ['-XX:+CompileTheWorld']
     vm_ = _get_vm()
@@ -1492,7 +1493,7 @@
     else:
         vmargs += ['-Xbootclasspath/p:' + jar]
 
-    # suppress menubar and dock when running on Mac
+    # suppress menubar and dock when running on Mac; exclude x11 classes as they may cause vm crashes (on Solaris)
     vmargs = ['-Djava.awt.headless=true'] + vmargs
 
     vm(vmargs)