changeset 6957:158e0c9645c5

Merge.
author Doug Simon <doug.simon@oracle.com>
date Thu, 15 Nov 2012 22:55:44 +0100
parents b8c29dcb846d (current diff) b62581e29024 (diff)
children abbe4faaf0c1
files
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Thu Nov 15 22:54:44 2012 +0100
+++ b/mx/commands.py	Thu Nov 15 22:55:44 2012 +0100
@@ -541,8 +541,10 @@
                 return
         else:
             cpus = multiprocessing.cpu_count()
+            runCmd = [mx.gmake_cmd()]
             if build == 'debug':
                 build = 'jvmg'
+            runCmd.append(build + buildSuffix) 
             env = os.environ
             env.setdefault('ARCH_DATA_MODEL', '64')
             env.setdefault('LANG', 'C')
@@ -554,8 +556,13 @@
                 cCompilerVersion = subprocess.Popen('CC -V', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).stderr.readlines()[0]
                 if cCompilerVersion.startswith('CC: Sun C++') :
                     compilerRev = cCompilerVersion.split(' ')[3]
-                    env.setdefault('ENFORCE_COMPILER_REV', compilerRev);
-                    env.setdefault('ENFORCE_CC_COMPILER_REV', compilerRev);
+                    env.setdefault('ENFORCE_COMPILER_REV', compilerRev)
+                    env.setdefault('ENFORCE_CC_COMPILER_REV', compilerRev)
+                    if build == 'jvmg':
+                        # I want ALL the symbols when I'm debugging on Solaris
+                        # Some Makefile variable are overloaded by environment variable so we need to explicitely
+                        # pass them down in the command line. This one is an example of that.
+                        runCmd.append('STRIP_POLICY=no_strip')
             # This removes the need to unzip the *.diz files before debugging in gdb
             env.setdefault('ZIP_DEBUGINFO_FILES', '0')
 
@@ -563,7 +570,7 @@
             env.pop('LD_LIBRARY_PATH', None)
             env.pop('CLASSPATH', None)
 
-            mx.run([mx.gmake_cmd(), build + buildSuffix], cwd=join(_graal_home, 'make'), err=filterXusage)
+            mx.run(runCmd, cwd=join(_graal_home, 'make'), err=filterXusage)
 
         jvmCfg = _vmCfgInJdk(jdk)
         found = False
--- a/mx/sanitycheck.py	Thu Nov 15 22:54:44 2012 +0100
+++ b/mx/sanitycheck.py	Thu Nov 15 22:55:44 2012 +0100
@@ -48,7 +48,8 @@
 
 dacapoScalaSanityWarmup = {
     'actors':     [0, 0, 2,  8, 10],
-    'apparat':    [0, 0, 1,  2,  3],
+# (lstadler) apparat was disabled due to a deadlock which I think is the benchmarks fault.
+#    'apparat':    [0, 0, 1,  2,  3],
     'factorie':   [0, 0, 2,  5,  5],
     'kiama':      [0, 0, 3, 13, 15],
     'scalac':     [0, 0, 5, 15, 20],