public class StubQueue extends VMObject
A port of the VM's StubQueue. Note that the VM implicitly knows the type of the objects contained in each StubQueue because it passes in an instance of a StubInterface to the StubQueue's constructor; the goal in the VM was to save space in the generated code. In the SA APIs the pattern has been to use the VirtualConstructor mechanism to instantiate wrapper objects of the appropriate type for objects down in the VM; see, for example, the CodeCache, which identifies NMethods, RuntimeStubs, etc.
In this port we eliminate the StubInterface in favor of passing in the class corresponding to the type of Stub which this StubQueue contains.
Constructor and Description |
---|
StubQueue(Address addr,
java.lang.Class stubType) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Address pc) |
Stub |
getFirst() |
Stub |
getNext(Stub s) |
int |
getNumberOfStubs() |
Stub |
getPrev(Stub s) |
Stub |
getStubContaining(Address pc) |
boolean |
stubContains(Stub s,
Address pc) |
equals, getAddress, hashCode, toString
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.