| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public static class | GC.
Represents an active garbage-collection latency request. |
| Modifier and Type | Field and Description |
|---|---|
| private static Thread | |
| private static long | |
| private static Object | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | currentLatencyTarget()
Returns the current smallest garbage-collection latency request, or zero if there are no active requests. |
| public static native long | maxObjectInspectionAge()
Returns the maximum object-inspection age, 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. |
| public static GC. | requestLatency(long
The requested latency latency)Makes a new request for a garbage-collection latency of the given number of real-time milliseconds. |
| private static void |
| daemon | back to summary |
|---|---|
| private static Thread daemon | |
| latencyTarget | back to summary |
|---|---|
| private static long latencyTarget | |
| lock | back to summary |
|---|---|
| private static Object lock | |
| NO_TARGET | back to summary |
|---|---|
| private static final long NO_TARGET | |
| GC | back to summary |
|---|---|
| private GC() | |
| currentLatencyTarget | back to summary |
|---|---|
| public static long currentLatencyTarget() Returns the current smallest garbage-collection latency request, or zero if there are no active requests. | |
| maxObjectInspectionAge | back to summary |
|---|---|
| public static native long maxObjectInspectionAge() Returns the maximum object-inspection age, 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. 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. 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. | |
| requestLatency | back to summary |
|---|---|
| public static GC. 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.
| |
| setLatencyTarget | back to summary |
|---|---|
| private static void setLatencyTarget(long ms) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public void |
| Daemon | back to summary |
|---|---|
| private Daemon() | |
| create | back to summary |
|---|---|
| public static void create() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Access | Constructor and Description |
|---|---|
| private |
| LatencyLock | back to summary |
|---|---|
| private LatencyLock() | |
requestLatency
method. Given a request, the only interesting operation is that of
cancellation.
| Modifier and Type | Field and Description |
|---|---|
| private static long | |
| private long | |
| private long | |
| private static SortedSet |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public void | |
| public int | compareTo(GC.
Implements java. Compares this object with the specified object for order. |
| public String |
| counter | back to summary |
|---|---|
| private static long counter | |
| id | back to summary |
|---|---|
| private long id | |
| latency | back to summary |
|---|---|
| private long latency | |
| requests | back to summary |
|---|---|
| private static SortedSet<GC. | |
| LatencyRequest | back to summary |
|---|---|
| private LatencyRequest(long ms) | |
| adjustLatencyIfNeeded | back to summary |
|---|---|
| private static void adjustLatencyIfNeeded() | |
| cancel | back to summary |
|---|---|
| public void cancel() Cancels this latency request.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(GC. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |