亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gc.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
字號:
/* * @(#)GC.java	1.15 06/10/10 * * Copyright  1990-2008 Sun Microsystems, Inc. All Rights Reserved.   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER   *    * This program is free software; you can redistribute it and/or   * modify it under the terms of the GNU General Public License version   * 2 only, as published by the Free Software Foundation.    *    * This program is distributed in the hope that it will be useful, but   * WITHOUT ANY WARRANTY; without even the implied warranty of   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * General Public License version 2 for more details (a copy is   * included at /legal/license.txt).    *    * You should have received a copy of the GNU General Public License   * version 2 along with this work; if not, write to the Free Software   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA   * 02110-1301 USA    *    * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa   * Clara, CA 95054 or visit www.sun.com if you need additional   * information or have any questions.  * */package sun.misc;import java.security.AccessController;import java.security.PrivilegedAction;import java.util.SortedSet;import java.util.TreeSet;import sun.misc.ThreadRegistry;/** * Support for garbage-collection latency requests. * * @version  1.8, 00/05/16 * @author   Mark Reinhold * @since    JDK1.2 */public class GC {    private GC() { }		/* To prevent instantiation */    /* Latency-target value indicating that there's no active target     */    private static final long NO_TARGET = Long.MAX_VALUE;    /* The current latency target, or NO_TARGET if there is no target     */    private static long latencyTarget = NO_TARGET;    /* The daemon thread that implements the latency-target mechanism,     * or null if there is presently no daemon thread     */    private static Thread daemon = null;    /* The lock object for the latencyTarget and daemon fields.  The daemon     * thread, if it exists, waits on this lock for notification that the     * latency target has changed.     */    private static class LatencyLock extends Object { };    private static Object lock = new LatencyLock();    /**     * Returns the maximum <em>object-inspection age</em>, which is the number     * of real-time milliseconds that have elapsed since the     * least-recently-inspected heap object was last inspected by the garbage     * collector.     *     * <p> For simple stop-the-world collectors this value is just the time     * since the most recent collection.  For generational collectors it is the     * time since the oldest generation was most recently collected.  Other     * collectors are free to return a pessimistic estimate of the elapsed     * time, or simply the time since the last full collection was performed.     *     * <p> Note that in the presence of reference objects, a given object that     * is no longer strongly reachable may have to be inspected multiple times     * before it can be reclaimed.     */    public static native long maxObjectInspectionAge();    private static class Daemon extends Thread {	public void run() {	    while (!ThreadRegistry.exitRequested()) {		long l;		synchronized (lock) {		    l = latencyTarget;		    if (l == NO_TARGET) {			/* No latency target, so exit */			GC.daemon = null;			return;		    }		    long d = maxObjectInspectionAge();		    if (d >= l) {			/* Do a full collection.  There is a remote possibility			 * that a full collection will occurr between the time			 * we sample the inspection age and the time the GC			 * actually starts, but this is sufficiently unlikely			 * that it doesn't seem worth the more expensive JVM			 * interface that would be required.			 */		        System.gc();			d = 0;		    }		    /* Wait for the latency period to expire,                     * or for notification that the period has changed		     */		    try {			lock.wait(l - d);		    } catch (InterruptedException x) {			continue;		    }		}	    }	}	private Daemon(ThreadGroup tg) {	    super(tg, "GC Daemon");	}	/* Create a new daemon thread in the root thread group */	public static void create() {	    PrivilegedAction pa = new PrivilegedAction() {		public Object run() {		    ThreadGroup tg = Thread.currentThread().getThreadGroup();		    for (ThreadGroup tgn = tg;			 tgn != null;			 tg = tgn, tgn = tg.getParent());		    Daemon d = new Daemon(tg);		    d.setDaemon(true);		    d.setPriority(Thread.MIN_PRIORITY + 1);		    d.start();		    GC.daemon = d;		    return null;		}};	    AccessController.doPrivileged(pa);	}    }    /* Sets the latency target to the given value.     * Must be invoked while holding the lock.     */    private static void setLatencyTarget(long ms) {	latencyTarget = ms;	if (daemon == null) {	    /* Create a new daemon thread */	    Daemon.create();	} else {	    /* Notify the existing daemon thread             * that the lateency target has changed	     */	    lock.notify();	}    }    /**     * Represents an active garbage-collection latency request.  Instances of     * this class are created by the <code>{@link #requestLatency}</code>     * method.  Given a request, the only interesting operation is that of     * cancellation.     */    public static class LatencyRequest implements Comparable {	/* Instance counter, used to generate unique identifers */	private static long counter = 0;	/* Sorted set of active latency requests */	private static SortedSet requests = null;	/* Examine the request set and reset the latency target if necessary.         * Must be invoked while holding the lock.         */	private static void adjustLatencyIfNeeded() {	    if ((requests == null) || requests.isEmpty()) {		if (latencyTarget != NO_TARGET) {		    setLatencyTarget(NO_TARGET);		}	    } else {		LatencyRequest r = (LatencyRequest)requests.first();		if (r.latency != latencyTarget) {		    setLatencyTarget(r.latency);		}	    }	}	/* The requested latency, or NO_TARGET         * if this request has been cancelled         */	private long latency;	/* Unique identifier for this request */	private long id;	private LatencyRequest(long ms) {	    if (ms <= 0) {		throw new IllegalArgumentException("Non-positive latency: "                                                   + ms);	    }	    this.latency = ms;	    synchronized (lock) {		this.id = ++counter;		if (requests == null) {		    requests = new TreeSet();		}		requests.add(this);		adjustLatencyIfNeeded();	    }	}	/**         * Cancels this latency request.         *         * @throws  IllegalStateException         *          If this request has already been cancelled         */	public void cancel() {	    synchronized (lock) {		if (this.latency == NO_TARGET) {		    throw new IllegalStateException("Request already"						    + " cancelled");		}		if (!requests.remove(this)) {		    throw new InternalError("Latency request "                                            + this + " not found");		}		if (requests.isEmpty()) requests = null;		this.latency = NO_TARGET;		adjustLatencyIfNeeded();	    }	}	public int compareTo(Object o) {	    LatencyRequest r = (LatencyRequest)o;	    long d = this.latency - r.latency;	    if (d == 0) d = this.id - r.id;	    return (d < 0) ? -1 : ((d > 0) ? +1 : 0);	}	public String toString() {	    return (LatencyRequest.class.getName()		    + "[" + latency + "," + id + "]");	}    }    /**     * Makes a new request for a garbage-collection latency of the given     * number of real-time milliseconds.  A low-priority daemon thread makes a     * best effort to ensure that the maximum object-inspection age never     * exceeds the smallest of the currently active requests.     *     * @param   latency     *          The requested latency     *      * @throws  IllegalArgumentException     *          If the given <code>latency</code> is non-positive     */    public static LatencyRequest requestLatency(long latency) {	return new LatencyRequest(latency);    }    /**     * Returns the current smallest garbage-collection latency request, or zero     * if there are no active requests.     */    public static long currentLatencyTarget() {	long t = latencyTarget;	return (t == NO_TARGET) ? 0 : t;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品888| 中文字幕一区三区| 日产国产欧美视频一区精品 | 国产欧美在线观看一区| 国产一区二区伦理片| 欧美日产在线观看| 免费观看一级欧美片| 欧美岛国在线观看| 顶级嫩模精品视频在线看| 亚洲视频综合在线| 欧美日本一区二区在线观看| 奇米888四色在线精品| 久久综合狠狠综合久久激情| 成人国产精品免费观看动漫| 亚洲精品精品亚洲| 欧美一区二区三区不卡| 国产一区福利在线| 亚洲免费电影在线| 欧美二区乱c少妇| 国产精品一区二区在线观看不卡 | 久久综合色婷婷| 成人18精品视频| 日日欢夜夜爽一区| 久久久久久久久久久久久久久99| 成人短视频下载| 久久久国产午夜精品| 亚洲免费观看高清完整| 欧美日韩你懂的| 国产自产视频一区二区三区| 亚洲少妇30p| 欧美一级在线免费| 国产成人综合亚洲91猫咪| 亚洲乱码精品一二三四区日韩在线| 欧美日本韩国一区二区三区视频 | 国产精品天美传媒| 51精品国自产在线| 成人福利视频在线看| 日韩电影免费在线看| 国产精品网站在线观看| 欧美一区二区三区啪啪| 色欧美片视频在线观看| 国产一区二区久久| 天天爽夜夜爽夜夜爽精品视频| 国产欧美精品一区aⅴ影院| 欧美精品 国产精品| 国产成人av一区| 欧美精品一区二区在线观看| 色噜噜久久综合| 国产夫妻精品视频| 日本aⅴ亚洲精品中文乱码| 亚洲日本丝袜连裤袜办公室| 久久―日本道色综合久久| 欧美午夜电影网| 成人av免费在线| 国产盗摄一区二区三区| 久久国产福利国产秒拍| 亚洲国产欧美在线| 国产精品九色蝌蚪自拍| 国产亚洲精品精华液| 欧美xfplay| 在线播放国产精品二区一二区四区| 精品日本一线二线三线不卡| 欧美在线一二三四区| 99视频有精品| 成人爱爱电影网址| 国产成人激情av| 国产精品一区二区免费不卡| 久久99精品国产麻豆不卡| 日韩1区2区日韩1区2区| 亚瑟在线精品视频| 在线综合视频播放| 在线精品视频一区二区| 成人小视频免费观看| 国产乱子伦一区二区三区国色天香| 看电视剧不卡顿的网站| 日韩福利视频网| 丝袜a∨在线一区二区三区不卡| 亚洲综合一区二区| 亚洲午夜视频在线| 三级欧美在线一区| 免费xxxx性欧美18vr| 久久se这里有精品| 国产精品资源在线| 成人精品免费看| 成人av网站在线观看免费| 99在线热播精品免费| 99在线热播精品免费| 99re66热这里只有精品3直播| 一本大道久久精品懂色aⅴ| 色综合久久久久综合99| 日本精品视频一区二区| 亚洲一区二区四区蜜桃| 日韩精品在线一区| 欧美亚洲日本一区| 国产成人av一区二区三区在线观看| 国内成+人亚洲+欧美+综合在线| 麻豆一区二区在线| 国产精品自拍在线| 成人黄色a**站在线观看| 色诱亚洲精品久久久久久| 欧美系列一区二区| 欧美mv日韩mv亚洲| 中文字幕不卡三区| 国产精品538一区二区在线| 国产成人av一区二区| 91久久国产最好的精华液| 91麻豆精品国产91久久久久久久久| 日韩欧美国产麻豆| 国产精品灌醉下药二区| 亚洲成a人片在线不卡一二三区| 久久精品72免费观看| 国产aⅴ综合色| 欧美日韩免费高清一区色橹橹| 精品人伦一区二区色婷婷| 中国av一区二区三区| 亚洲国产精品欧美一二99| 国产一区在线精品| 在线免费观看日韩欧美| 欧美一区二区视频在线观看2020| 欧美高清在线精品一区| 亚洲高清免费在线| 欧美一区二区人人喊爽| 日本一区二区三区四区| 亚洲一区二区三区国产| 国产一区二区三区在线观看免费 | 激情综合一区二区三区| 91在线视频网址| 日韩视频一区二区| 中文字幕一区二区三区在线不卡| 日韩电影在线一区二区三区| 成人午夜在线视频| 欧美大片在线观看| 亚洲一区日韩精品中文字幕| 国产精品一品视频| 91麻豆精品国产91久久久更新时间| 日韩电影一二三区| 99综合电影在线视频| 欧美va亚洲va| 亚洲图片一区二区| heyzo一本久久综合| 精品成人一区二区三区| 亚洲第一激情av| 日本高清不卡视频| 日本一区二区视频在线| 极品尤物av久久免费看| 欧美日韩高清在线播放| 亚洲男人都懂的| 成人黄色免费短视频| 26uuu亚洲婷婷狠狠天堂| 日日夜夜精品视频天天综合网| 91精彩视频在线| 国产精品国产三级国产aⅴ中文| 国产一区二区三区在线观看免费 | 91污片在线观看| 久久影院电视剧免费观看| 午夜成人免费电影| 在线视频欧美精品| 亚洲婷婷在线视频| 波多野结衣在线一区| 久久蜜桃av一区二区天堂| 精品制服美女久久| 日韩欧美国产综合在线一区二区三区| 亚洲成人一区二区| 欧美精品日韩精品| 亚洲成av人影院在线观看网| 欧美性感一区二区三区| 亚洲一区二区成人在线观看| 一道本成人在线| 一区二区三区不卡视频| 91激情五月电影| 成人性视频网站| 国产亚洲一区字幕| 成人免费高清在线| 亚洲人成网站在线| 欧美在线观看视频一区二区三区 | 免费人成精品欧美精品| 91传媒视频在线播放| 亚洲精品视频在线看| 在线观看www91| 亚洲电影一区二区| 欧美一区日韩一区| 另类小说色综合网站| 久久综合五月天婷婷伊人| 国产乱妇无码大片在线观看| 国产欧美日韩综合精品一区二区| 成人丝袜高跟foot| 亚洲免费观看在线视频| 欧美日韩高清一区二区| 捆绑调教一区二区三区| 久久久久久影视| 97se狠狠狠综合亚洲狠狠| 亚洲午夜久久久久久久久电影网| 91麻豆精品国产91久久久更新时间| 久色婷婷小香蕉久久| 国产三级精品视频| 欧美亚洲图片小说| 久88久久88久久久| 亚洲猫色日本管| 欧美一级二级在线观看| 国产suv精品一区二区883|