src/jdk/internal/dynalink/DynamicLinkerFactory.java

Thu, 12 Oct 2017 19:52:15 +0800

author
aoqi
date
Thu, 12 Oct 2017 19:52:15 +0800
changeset 1205
4112748288bb
parent 1090
99571b7922c0
parent 952
6d5471a497fb
child 1490
d85f981c8cf8
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 /*
aoqi@0 27 * This file is available under and governed by the GNU General Public
aoqi@0 28 * License version 2 only, as published by the Free Software Foundation.
aoqi@0 29 * However, the following notice accompanied the original version of this
aoqi@0 30 * file, and Oracle licenses the original version of this file under the BSD
aoqi@0 31 * license:
aoqi@0 32 */
aoqi@0 33 /*
aoqi@0 34 Copyright 2009-2013 Attila Szegedi
aoqi@0 35
aoqi@0 36 Licensed under both the Apache License, Version 2.0 (the "Apache License")
aoqi@0 37 and the BSD License (the "BSD License"), with licensee being free to
aoqi@0 38 choose either of the two at their discretion.
aoqi@0 39
aoqi@0 40 You may not use this file except in compliance with either the Apache
aoqi@0 41 License or the BSD License.
aoqi@0 42
aoqi@0 43 If you choose to use this file in compliance with the Apache License, the
aoqi@0 44 following notice applies to you:
aoqi@0 45
aoqi@0 46 You may obtain a copy of the Apache License at
aoqi@0 47
aoqi@0 48 http://www.apache.org/licenses/LICENSE-2.0
aoqi@0 49
aoqi@0 50 Unless required by applicable law or agreed to in writing, software
aoqi@0 51 distributed under the License is distributed on an "AS IS" BASIS,
aoqi@0 52 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
aoqi@0 53 implied. See the License for the specific language governing
aoqi@0 54 permissions and limitations under the License.
aoqi@0 55
aoqi@0 56 If you choose to use this file in compliance with the BSD License, the
aoqi@0 57 following notice applies to you:
aoqi@0 58
aoqi@0 59 Redistribution and use in source and binary forms, with or without
aoqi@0 60 modification, are permitted provided that the following conditions are
aoqi@0 61 met:
aoqi@0 62 * Redistributions of source code must retain the above copyright
aoqi@0 63 notice, this list of conditions and the following disclaimer.
aoqi@0 64 * Redistributions in binary form must reproduce the above copyright
aoqi@0 65 notice, this list of conditions and the following disclaimer in the
aoqi@0 66 documentation and/or other materials provided with the distribution.
aoqi@0 67 * Neither the name of the copyright holder nor the names of
aoqi@0 68 contributors may be used to endorse or promote products derived from
aoqi@0 69 this software without specific prior written permission.
aoqi@0 70
aoqi@0 71 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
aoqi@0 72 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
aoqi@0 73 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
aoqi@0 74 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER
aoqi@0 75 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
aoqi@0 76 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
aoqi@0 77 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
aoqi@0 78 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
aoqi@0 79 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
aoqi@0 80 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
aoqi@0 81 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
aoqi@0 82 */
aoqi@0 83
aoqi@0 84 package jdk.internal.dynalink;
aoqi@0 85
aoqi@0 86 import java.lang.invoke.MutableCallSite;
aoqi@0 87 import java.security.AccessController;
aoqi@0 88 import java.security.PrivilegedAction;
aoqi@0 89 import java.util.ArrayList;
aoqi@0 90 import java.util.Arrays;
aoqi@0 91 import java.util.Collections;
aoqi@0 92 import java.util.HashSet;
aoqi@0 93 import java.util.LinkedList;
aoqi@0 94 import java.util.List;
aoqi@0 95 import java.util.Set;
aoqi@0 96 import jdk.internal.dynalink.beans.BeansLinker;
aoqi@0 97 import jdk.internal.dynalink.linker.GuardingDynamicLinker;
aoqi@0 98 import jdk.internal.dynalink.linker.GuardingTypeConverterFactory;
aoqi@0 99 import jdk.internal.dynalink.linker.LinkRequest;
attila@1090 100 import jdk.internal.dynalink.linker.MethodTypeConversionStrategy;
aoqi@0 101 import jdk.internal.dynalink.support.AutoDiscovery;
aoqi@0 102 import jdk.internal.dynalink.support.BottomGuardingDynamicLinker;
aoqi@0 103 import jdk.internal.dynalink.support.ClassLoaderGetterContextProvider;
aoqi@0 104 import jdk.internal.dynalink.support.CompositeGuardingDynamicLinker;
aoqi@0 105 import jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker;
attila@963 106 import jdk.internal.dynalink.support.DefaultPrelinkFilter;
aoqi@0 107 import jdk.internal.dynalink.support.LinkerServicesImpl;
aoqi@0 108 import jdk.internal.dynalink.support.TypeConverterFactory;
attila@1090 109 import jdk.internal.dynalink.support.TypeUtilities;
aoqi@0 110
aoqi@0 111 /**
aoqi@0 112 * A factory class for creating {@link DynamicLinker}s. The most usual dynamic linker is a linker that is a composition
aoqi@0 113 * of all {@link GuardingDynamicLinker}s known and pre-created by the caller as well as any
attila@963 114 * {@link AutoDiscovery automatically discovered} guarding linkers and the standard fallback {@link BeansLinker} and a
attila@963 115 * {@link DefaultPrelinkFilter}. See {@link DynamicLinker} documentation for tips on how to use this class.
aoqi@0 116 *
aoqi@0 117 * @author Attila Szegedi
aoqi@0 118 */
aoqi@0 119 public class DynamicLinkerFactory {
aoqi@0 120 /**
aoqi@0 121 * Default value for {@link #setUnstableRelinkThreshold(int) unstable relink threshold}.
aoqi@0 122 */
aoqi@0 123 public static final int DEFAULT_UNSTABLE_RELINK_THRESHOLD = 8;
aoqi@0 124
aoqi@0 125 private boolean classLoaderExplicitlySet = false;
aoqi@0 126 private ClassLoader classLoader;
aoqi@0 127
aoqi@0 128 private List<? extends GuardingDynamicLinker> prioritizedLinkers;
aoqi@0 129 private List<? extends GuardingDynamicLinker> fallbackLinkers;
aoqi@0 130 private int runtimeContextArgCount = 0;
aoqi@0 131 private boolean syncOnRelink = false;
aoqi@0 132 private int unstableRelinkThreshold = DEFAULT_UNSTABLE_RELINK_THRESHOLD;
attila@963 133 private GuardedInvocationFilter prelinkFilter;
attila@1090 134 private MethodTypeConversionStrategy autoConversionStrategy;
aoqi@0 135
aoqi@0 136 /**
aoqi@0 137 * Sets the class loader for automatic discovery of available linkers. If not set explicitly, then the thread
aoqi@0 138 * context class loader at the time of {@link #createLinker()} invocation will be used.
aoqi@0 139 *
aoqi@0 140 * @param classLoader the class loader used for the autodiscovery of available linkers.
aoqi@0 141 */
attila@962 142 public void setClassLoader(final ClassLoader classLoader) {
aoqi@0 143 this.classLoader = classLoader;
aoqi@0 144 classLoaderExplicitlySet = true;
aoqi@0 145 }
aoqi@0 146
aoqi@0 147 /**
aoqi@0 148 * Sets the prioritized linkers. Language runtimes using this framework will usually precreate at least the linker
aoqi@0 149 * for their own language. These linkers will be consulted first in the resulting dynamic linker, before any
aoqi@0 150 * autodiscovered linkers. If the framework also autodiscovers a linker of the same class as one of the prioritized
aoqi@0 151 * linkers, it will be ignored and the explicit prioritized instance will be used.
aoqi@0 152 *
aoqi@0 153 * @param prioritizedLinkers the list of prioritized linkers. Null can be passed to indicate no prioritized linkers
aoqi@0 154 * (this is also the default value).
aoqi@0 155 */
attila@962 156 public void setPrioritizedLinkers(final List<? extends GuardingDynamicLinker> prioritizedLinkers) {
aoqi@0 157 this.prioritizedLinkers =
aoqi@0 158 prioritizedLinkers == null ? null : new ArrayList<>(prioritizedLinkers);
aoqi@0 159 }
aoqi@0 160
aoqi@0 161 /**
aoqi@0 162 * Sets the prioritized linkers. Language runtimes using this framework will usually precreate at least the linker
aoqi@0 163 * for their own language. These linkers will be consulted first in the resulting dynamic linker, before any
aoqi@0 164 * autodiscovered linkers. If the framework also autodiscovers a linker of the same class as one of the prioritized
aoqi@0 165 * linkers, it will be ignored and the explicit prioritized instance will be used.
aoqi@0 166 *
aoqi@0 167 * @param prioritizedLinkers a list of prioritized linkers.
aoqi@0 168 */
attila@962 169 public void setPrioritizedLinkers(final GuardingDynamicLinker... prioritizedLinkers) {
aoqi@0 170 setPrioritizedLinkers(Arrays.asList(prioritizedLinkers));
aoqi@0 171 }
aoqi@0 172
aoqi@0 173 /**
aoqi@0 174 * Sets a single prioritized linker. Identical to calling {@link #setPrioritizedLinkers(List)} with a single-element
aoqi@0 175 * list.
aoqi@0 176 *
aoqi@0 177 * @param prioritizedLinker the single prioritized linker. Must not be null.
aoqi@0 178 * @throws IllegalArgumentException if null is passed.
aoqi@0 179 */
attila@962 180 public void setPrioritizedLinker(final GuardingDynamicLinker prioritizedLinker) {
aoqi@0 181 if(prioritizedLinker == null) {
aoqi@0 182 throw new IllegalArgumentException("prioritizedLinker == null");
aoqi@0 183 }
aoqi@0 184 this.prioritizedLinkers = Collections.singletonList(prioritizedLinker);
aoqi@0 185 }
aoqi@0 186
aoqi@0 187 /**
aoqi@0 188 * Sets the fallback linkers. These linkers will be consulted last in the resulting composite linker, after any
aoqi@0 189 * autodiscovered linkers. If the framework also autodiscovers a linker of the same class as one of the fallback
aoqi@0 190 * linkers, it will be ignored and the explicit fallback instance will be used.
aoqi@0 191 *
aoqi@0 192 * @param fallbackLinkers the list of fallback linkers. Can be empty to indicate the caller wishes to set no
aoqi@0 193 * fallback linkers.
aoqi@0 194 */
attila@962 195 public void setFallbackLinkers(final List<? extends GuardingDynamicLinker> fallbackLinkers) {
aoqi@0 196 this.fallbackLinkers = fallbackLinkers == null ? null : new ArrayList<>(fallbackLinkers);
aoqi@0 197 }
aoqi@0 198
aoqi@0 199 /**
aoqi@0 200 * Sets the fallback linkers. These linkers will be consulted last in the resulting composite linker, after any
aoqi@0 201 * autodiscovered linkers. If the framework also autodiscovers a linker of the same class as one of the fallback
aoqi@0 202 * linkers, it will be ignored and the explicit fallback instance will be used.
aoqi@0 203 *
aoqi@0 204 * @param fallbackLinkers the list of fallback linkers. Can be empty to indicate the caller wishes to set no
aoqi@0 205 * fallback linkers. If it is left as null, the standard fallback {@link BeansLinker} will be used.
aoqi@0 206 */
attila@962 207 public void setFallbackLinkers(final GuardingDynamicLinker... fallbackLinkers) {
aoqi@0 208 setFallbackLinkers(Arrays.asList(fallbackLinkers));
aoqi@0 209 }
aoqi@0 210
aoqi@0 211 /**
aoqi@0 212 * Sets the number of arguments in the call sites that represent the stack context of the language runtime creating
aoqi@0 213 * the linker. If the language runtime uses no context information passed on stack, then it should be zero
aoqi@0 214 * (the default value). If it is set to nonzero value, then every dynamic call site emitted by this runtime must
aoqi@0 215 * have the argument list of the form: {@code (this, contextArg1[, contextArg2[, ...]], normalArgs)}. It is
aoqi@0 216 * advisable to only pass one context-specific argument, though, of an easily recognizable, runtime specific type
aoqi@0 217 * encapsulating the runtime thread local state.
aoqi@0 218 *
aoqi@0 219 * @param runtimeContextArgCount the number of language runtime context arguments in call sites.
aoqi@0 220 */
attila@962 221 public void setRuntimeContextArgCount(final int runtimeContextArgCount) {
aoqi@0 222 if(runtimeContextArgCount < 0) {
aoqi@0 223 throw new IllegalArgumentException("runtimeContextArgCount < 0");
aoqi@0 224 }
aoqi@0 225 this.runtimeContextArgCount = runtimeContextArgCount;
aoqi@0 226 }
aoqi@0 227
aoqi@0 228 /**
aoqi@0 229 * Sets whether the linker created by this factory will invoke {@link MutableCallSite#syncAll(MutableCallSite[])}
aoqi@0 230 * after a call site is relinked. Defaults to false. You probably want to set it to true if your runtime supports
aoqi@0 231 * multithreaded execution of dynamically linked code.
aoqi@0 232 * @param syncOnRelink true for invoking sync on relink, false otherwise.
aoqi@0 233 */
attila@962 234 public void setSyncOnRelink(final boolean syncOnRelink) {
aoqi@0 235 this.syncOnRelink = syncOnRelink;
aoqi@0 236 }
aoqi@0 237
aoqi@0 238 /**
aoqi@0 239 * Sets the unstable relink threshold; the number of times a call site is relinked after which it will be
aoqi@0 240 * considered unstable, and subsequent link requests for it will indicate this.
aoqi@0 241 * @param unstableRelinkThreshold the new threshold. Must not be less than zero. The value of zero means that
aoqi@0 242 * call sites will never be considered unstable.
aoqi@0 243 * @see LinkRequest#isCallSiteUnstable()
aoqi@0 244 */
attila@962 245 public void setUnstableRelinkThreshold(final int unstableRelinkThreshold) {
aoqi@0 246 if(unstableRelinkThreshold < 0) {
aoqi@0 247 throw new IllegalArgumentException("unstableRelinkThreshold < 0");
aoqi@0 248 }
aoqi@0 249 this.unstableRelinkThreshold = unstableRelinkThreshold;
aoqi@0 250 }
aoqi@0 251
aoqi@0 252 /**
attila@963 253 * Set the pre-link filter. This is a {@link GuardedInvocationFilter} that will get the final chance to modify the
attila@963 254 * guarded invocation after it has been created by a component linker and before the dynamic linker links it into
attila@963 255 * the call site. It is normally used to adapt the return value type of the invocation to the type of the call site.
attila@963 256 * When not set explicitly, {@link DefaultPrelinkFilter} will be used.
attila@963 257 * @param prelinkFilter the pre-link filter for the dynamic linker.
attila@963 258 */
attila@963 259 public void setPrelinkFilter(final GuardedInvocationFilter prelinkFilter) {
attila@963 260 this.prelinkFilter = prelinkFilter;
attila@963 261 }
attila@963 262
attila@963 263 /**
attila@1090 264 * Sets an object representing the conversion strategy for automatic type conversions. After
attila@1090 265 * {@link TypeConverterFactory#asType(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType)} has
attila@1090 266 * applied all custom conversions to a method handle, it still needs to effect
attila@1090 267 * {@link TypeUtilities#isMethodInvocationConvertible(Class, Class) method invocation conversions} that
attila@1090 268 * can usually be automatically applied as per
attila@1090 269 * {@link java.lang.invoke.MethodHandle#asType(java.lang.invoke.MethodType)}.
attila@1090 270 * However, sometimes language runtimes will want to customize even those conversions for their own call
attila@1090 271 * sites. A typical example is allowing unboxing of null return values, which is by default prohibited by
attila@1090 272 * ordinary {@code MethodHandles.asType}. In this case, a language runtime can install its own custom
attila@1090 273 * automatic conversion strategy, that can deal with null values. Note that when the strategy's
attila@1090 274 * {@link MethodTypeConversionStrategy#asType(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType)}
attila@1090 275 * is invoked, the custom language conversions will already have been applied to the method handle, so by
attila@1090 276 * design the difference between the handle's current method type and the desired final type will always
attila@1090 277 * only be ones that can be subjected to method invocation conversions. The strategy also doesn't need to
attila@1090 278 * invoke a final {@code MethodHandle.asType()} as the converter factory will do that as the final step.
attila@1090 279 * @param autoConversionStrategy the strategy for applying method invocation conversions for the linker
attila@1090 280 * created by this factory.
attila@1090 281 */
attila@1090 282 public void setAutoConversionStrategy(final MethodTypeConversionStrategy autoConversionStrategy) {
attila@1090 283 this.autoConversionStrategy = autoConversionStrategy;
attila@1090 284 }
attila@1090 285
attila@1090 286 /**
attila@963 287 * Creates a new dynamic linker consisting of all the prioritized, autodiscovered, and fallback linkers as well as
attila@963 288 * the pre-link filter.
aoqi@0 289 *
aoqi@0 290 * @return the new dynamic Linker
aoqi@0 291 */
aoqi@0 292 public DynamicLinker createLinker() {
aoqi@0 293 // Treat nulls appropriately
aoqi@0 294 if(prioritizedLinkers == null) {
aoqi@0 295 prioritizedLinkers = Collections.emptyList();
aoqi@0 296 }
aoqi@0 297 if(fallbackLinkers == null) {
aoqi@0 298 fallbackLinkers = Collections.singletonList(new BeansLinker());
aoqi@0 299 }
aoqi@0 300
aoqi@0 301 // Gather classes of all precreated (prioritized and fallback) linkers.
aoqi@0 302 // We'll filter out any discovered linkers of the same class.
aoqi@0 303 final Set<Class<? extends GuardingDynamicLinker>> knownLinkerClasses =
aoqi@0 304 new HashSet<>();
aoqi@0 305 addClasses(knownLinkerClasses, prioritizedLinkers);
aoqi@0 306 addClasses(knownLinkerClasses, fallbackLinkers);
aoqi@0 307
aoqi@0 308 final ClassLoader effectiveClassLoader = classLoaderExplicitlySet ? classLoader : getThreadContextClassLoader();
aoqi@0 309 final List<GuardingDynamicLinker> discovered = AutoDiscovery.loadLinkers(effectiveClassLoader);
aoqi@0 310 // Now, concatenate ...
aoqi@0 311 final List<GuardingDynamicLinker> linkers =
aoqi@0 312 new ArrayList<>(prioritizedLinkers.size() + discovered.size()
aoqi@0 313 + fallbackLinkers.size());
aoqi@0 314 // ... prioritized linkers, ...
aoqi@0 315 linkers.addAll(prioritizedLinkers);
aoqi@0 316 // ... filtered discovered linkers, ...
attila@962 317 for(final GuardingDynamicLinker linker: discovered) {
aoqi@0 318 if(!knownLinkerClasses.contains(linker.getClass())) {
aoqi@0 319 linkers.add(linker);
aoqi@0 320 }
aoqi@0 321 }
aoqi@0 322 // ... and finally fallback linkers.
aoqi@0 323 linkers.addAll(fallbackLinkers);
aoqi@0 324 final List<GuardingDynamicLinker> optimized = CompositeTypeBasedGuardingDynamicLinker.optimize(linkers);
aoqi@0 325 final GuardingDynamicLinker composite;
aoqi@0 326 switch(linkers.size()) {
aoqi@0 327 case 0: {
aoqi@0 328 composite = BottomGuardingDynamicLinker.INSTANCE;
aoqi@0 329 break;
aoqi@0 330 }
aoqi@0 331 case 1: {
aoqi@0 332 composite = optimized.get(0);
aoqi@0 333 break;
aoqi@0 334 }
aoqi@0 335 default: {
aoqi@0 336 composite = new CompositeGuardingDynamicLinker(optimized);
aoqi@0 337 break;
aoqi@0 338 }
aoqi@0 339 }
aoqi@0 340
aoqi@0 341 final List<GuardingTypeConverterFactory> typeConverters = new LinkedList<>();
attila@962 342 for(final GuardingDynamicLinker linker: linkers) {
aoqi@0 343 if(linker instanceof GuardingTypeConverterFactory) {
aoqi@0 344 typeConverters.add((GuardingTypeConverterFactory)linker);
aoqi@0 345 }
aoqi@0 346 }
aoqi@0 347
attila@963 348 if(prelinkFilter == null) {
attila@963 349 prelinkFilter = new DefaultPrelinkFilter();
attila@963 350 }
attila@963 351
attila@1090 352 return new DynamicLinker(new LinkerServicesImpl(new TypeConverterFactory(typeConverters,
attila@1090 353 autoConversionStrategy), composite), prelinkFilter, runtimeContextArgCount, syncOnRelink,
attila@1090 354 unstableRelinkThreshold);
aoqi@0 355 }
aoqi@0 356
aoqi@0 357 private static ClassLoader getThreadContextClassLoader() {
aoqi@0 358 return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
aoqi@0 359 @Override
aoqi@0 360 public ClassLoader run() {
aoqi@0 361 return Thread.currentThread().getContextClassLoader();
aoqi@0 362 }
aoqi@0 363 }, ClassLoaderGetterContextProvider.GET_CLASS_LOADER_CONTEXT);
aoqi@0 364 }
aoqi@0 365
attila@962 366 private static void addClasses(final Set<Class<? extends GuardingDynamicLinker>> knownLinkerClasses,
attila@962 367 final List<? extends GuardingDynamicLinker> linkers) {
attila@962 368 for(final GuardingDynamicLinker linker: linkers) {
aoqi@0 369 knownLinkerClasses.add(linker.getClass());
aoqi@0 370 }
aoqi@0 371 }
aoqi@0 372 }

mercurial