|
46 | 46 | _vmChoices = { |
47 | 47 | 'server' : 'Normal compilation is performed with a tiered system (C1 + C2 or Graal) and Graal is available for hosted compilation.', |
48 | 48 | 'client' : None, # VM compilation with client compiler, hosted compilation with Graal |
49 | | - 'original' : None, # default VM copied from bootstrap JDK |
50 | 49 | } |
51 | 50 |
|
52 | 51 | _jvmciModes = { |
@@ -535,11 +534,7 @@ def get_jvmci_jdk_dir(build=None, vmToCheck=None, create=False, deployDists=True |
535 | 534 | with open(jvmCfg) as f: |
536 | 535 | jvmCfgLines = f.readlines() |
537 | 536 |
|
538 | | - jvmCfgLines += ['-original KNOWN\n'] |
539 | | - |
540 | | - defaultVM = 'server' |
541 | 537 | chmodRecursive(jdkDir, JDK_UNIX_PERMISSIONS_DIR) |
542 | | - shutil.move(join(vmLibDirInJdk(jdkDir), defaultVM), join(vmLibDirInJdk(jdkDir), 'original')) |
543 | 538 |
|
544 | 539 | if mx.get_os() != 'windows': |
545 | 540 | os.chmod(jvmCfg, JDK_UNIX_PERMISSIONS_FILE) |
@@ -981,10 +976,6 @@ def needsBuild(self, newestInput): |
981 | 976 | def buildForbidden(self): |
982 | 977 | if mx.NativeBuildTask.buildForbidden(self): |
983 | 978 | return True |
984 | | - if self.vm == 'original': |
985 | | - if self.vmbuild != 'product': |
986 | | - mx.log('only product build of original VM exists') |
987 | | - return True |
988 | 979 | if not isVMSupported(self.vm): |
989 | 980 | mx.log('The ' + self.vm + ' VM is not supported on this platform - skipping') |
990 | 981 | return True |
@@ -1057,23 +1048,21 @@ def run_vm(args, vm=None, nonZeroIsFatal=True, out=None, err=None, cwd=None, tim |
1057 | 1048 |
|
1058 | 1049 | def _unittest_config_participant(config): |
1059 | 1050 | vmArgs, mainClass, mainClassArgs = config |
1060 | | - if isJVMCIEnabled(get_vm()): |
1061 | | - # Remove entries from class path that are in JVMCI loaded jars |
1062 | | - cpIndex, cp = mx.find_classpath_arg(vmArgs) |
1063 | | - if cp: |
1064 | | - excluded = set() |
1065 | | - for jdkDist in jdkDeployedDists: |
1066 | | - dist = jdkDist.dist() |
1067 | | - excluded.update([d.output_dir() for d in dist.archived_deps() if d.isJavaProject()]) |
1068 | | - excluded.add(dist.path) |
1069 | | - cp = os.pathsep.join([e for e in cp.split(os.pathsep) if e not in excluded]) |
1070 | | - vmArgs[cpIndex] = cp |
1071 | | - |
1072 | | - # Run the VM in a mode where application/test classes can |
1073 | | - # access JVMCI loaded classes. |
1074 | | - vmArgs = ['-XX:-UseJVMCIClassLoader'] + vmArgs |
1075 | | - return (vmArgs, mainClass, mainClassArgs) |
1076 | | - return config |
| 1051 | + # Remove entries from class path that are in JVMCI loaded jars |
| 1052 | + cpIndex, cp = mx.find_classpath_arg(vmArgs) |
| 1053 | + if cp: |
| 1054 | + excluded = set() |
| 1055 | + for jdkDist in jdkDeployedDists: |
| 1056 | + dist = jdkDist.dist() |
| 1057 | + excluded.update([d.output_dir() for d in dist.archived_deps() if d.isJavaProject()]) |
| 1058 | + excluded.add(dist.path) |
| 1059 | + cp = os.pathsep.join([e for e in cp.split(os.pathsep) if e not in excluded]) |
| 1060 | + vmArgs[cpIndex] = cp |
| 1061 | + |
| 1062 | + # Run the VM in a mode where application/test classes can |
| 1063 | + # access JVMCI loaded classes. |
| 1064 | + vmArgs = ['-XX:-UseJVMCIClassLoader'] + vmArgs |
| 1065 | + return (vmArgs, mainClass, mainClassArgs) |
1077 | 1066 |
|
1078 | 1067 | def _unittest_vm_launcher(vmArgs, mainClass, mainClassArgs): |
1079 | 1068 | run_vm(vmArgs + [mainClass] + mainClassArgs) |
@@ -1109,8 +1098,6 @@ def buildvms(args): |
1109 | 1098 | continue |
1110 | 1099 |
|
1111 | 1100 | for vmbuild in builds: |
1112 | | - if vm == 'original' and vmbuild != 'product': |
1113 | | - continue |
1114 | 1101 | if not args.console: |
1115 | 1102 | logFile = join(vm + '-' + vmbuild + '.log') |
1116 | 1103 | log = open(join(_suite.dir, logFile), 'wb') |
@@ -1351,9 +1338,6 @@ def hcfdis(args): |
1351 | 1338 | for l in lines: |
1352 | 1339 | print >> fp, l |
1353 | 1340 |
|
1354 | | -def isJVMCIEnabled(vm): |
1355 | | - return vm != 'original' |
1356 | | - |
1357 | 1341 | def jol(args): |
1358 | 1342 | """Java Object Layout""" |
1359 | 1343 | joljar = mx.library('JOL_INTERNALS').get_path(resolve=True) |
|
0 commit comments