< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVmSymbols.java
Print this page
*** 20,48 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.hotspot;
- import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime;
- import static jdk.vm.ci.hotspot.UnsafeAccess.UNSAFE;
- import jdk.internal.misc.Unsafe;
-
/**
* Class to access the C++ {@code vmSymbols} table.
*/
! final class HotSpotVmSymbols {
!
! /**
! * Returns the symbol in the {@code vmSymbols} table at position {@code index} as {@link String}
! * .
! *
! * @param index position in the symbol table
! * @return the symbol at position id
! */
! static String symbolAt(int index) {
! HotSpotJVMCIRuntimeProvider runtime = runtime();
! HotSpotVMConfig config = runtime.getConfig();
! assert config.vmSymbolsFirstSID <= index && index < config.vmSymbolsSIDLimit : "index " + index + " is out of bounds";
! assert config.symbolPointerSize == Unsafe.ADDRESS_SIZE : "the following address read is broken";
! return runtime.getCompilerToVM().getSymbol(UNSAFE.getAddress(config.vmSymbolsSymbols + index * config.symbolPointerSize));
! }
}
--- 20,29 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.hotspot;
/**
* Class to access the C++ {@code vmSymbols} table.
*/
! final class HotSpotVMSymbols {
}
< prev index next >