src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
equal
deleted
inserted
replaced
54 * Initializes the native part of the JVMCI runtime. |
54 * Initializes the native part of the JVMCI runtime. |
55 */ |
55 */ |
56 private static native void registerNatives(); |
56 private static native void registerNatives(); |
57 |
57 |
58 /** |
58 /** |
59 * These values mirror the equivalent values from {@link Unsafe} but are approriate for the JVM |
59 * These values mirror the equivalent values from {@code Unsafe} but are appropriate for the JVM |
60 * being compiled against. |
60 * being compiled against. |
61 */ |
61 */ |
62 // Checkstyle: stop |
62 // Checkstyle: stop |
63 final int ARRAY_BOOLEAN_BASE_OFFSET; |
63 final int ARRAY_BOOLEAN_BASE_OFFSET; |
64 final int ARRAY_BYTE_BASE_OFFSET; |
64 final int ARRAY_BYTE_BASE_OFFSET; |
512 */ |
512 */ |
513 native long getLocalVariableTableStart(HotSpotResolvedJavaMethodImpl method); |
513 native long getLocalVariableTableStart(HotSpotResolvedJavaMethodImpl method); |
514 |
514 |
515 /** |
515 /** |
516 * Reads an object pointer within a VM data structure. That is, any {@link VMField} whose |
516 * Reads an object pointer within a VM data structure. That is, any {@link VMField} whose |
517 * {@link VMField#type type} is {@code "oop"} (e.g., |
517 * {@link VMField#type type} is {@code "oop"} (e.g., {@code Klass::_java_mirror}, |
518 * {@code Klass::_java_mirror}, {@code JavaThread::_threadObj}). |
518 * {@code JavaThread::_threadObj}). |
519 * |
519 * |
520 * Note that {@link Unsafe#getObject(Object, long)} cannot be used for this since it does a |
520 * Note that {@code Unsafe.getObject(Object, long)} cannot be used for this since it does a |
521 * {@code narrowOop} read if the VM is using compressed oops whereas oops within VM data |
521 * {@code narrowOop} read if the VM is using compressed oops whereas oops within VM data |
522 * structures are (currently) always uncompressed. |
522 * structures are (currently) always uncompressed. |
523 * |
523 * |
524 * @param address address of an oop field within a VM data structure |
524 * @param address address of an oop field within a VM data structure |
525 */ |
525 */ |