Mercurial > hg > graal-jvmci-8
comparison mx.jvmci/mx_jvmci.py @ 22729:e00426c54952
made JVMCI providers available as a normal services to avoid need for recompiling Graal jars to deploy them on JDK9
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 10 Nov 2015 23:16:06 +0100 |
parents | 9860aa60385f |
children | b2ffe9891356 |
comparison
equal
deleted
inserted
replaced
22728:eb2091fcd682 | 22729:e00426c54952 |
---|---|
1724 if arcname.startswith('META-INF/jvmci.providers/'): | 1724 if arcname.startswith('META-INF/jvmci.providers/'): |
1725 provider = arcname[len('META-INF/jvmci.providers/'):] | 1725 provider = arcname[len('META-INF/jvmci.providers/'):] |
1726 for service in contents.strip().split(os.linesep): | 1726 for service in contents.strip().split(os.linesep): |
1727 assert service | 1727 assert service |
1728 self.jvmciServices.setdefault(service, []).append(provider) | 1728 self.jvmciServices.setdefault(service, []).append(provider) |
1729 # Make provider available as a normal service as well to | |
1730 # allow for deployment on JDK9 without having to recompile. | |
1731 self.services.setdefault(service, []).append(provider) | |
1729 return True | 1732 return True |
1730 elif arcname.endswith('_OptionDescriptors.class'): | 1733 elif arcname.endswith('_OptionDescriptors.class'): |
1731 # Need to create service files for the providers of the | 1734 # Need to create service files for the providers of the |
1732 # jdk.vm.ci.options.Options service created by | 1735 # jdk.vm.ci.options.Options service created by |
1733 # jdk.vm.ci.options.processor.OptionProcessor. | 1736 # jdk.vm.ci.options.processor.OptionProcessor. |