src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
equal
deleted
inserted
replaced
610 |
610 |
611 /** |
611 /** |
612 * Writes {@code length} bytes from {@code bytes} starting at offset {@code offset} to HotSpot's |
612 * Writes {@code length} bytes from {@code bytes} starting at offset {@code offset} to HotSpot's |
613 * log stream. |
613 * log stream. |
614 * |
614 * |
|
615 * @param flush specifies if the log stream should be flushed after writing |
|
616 * @param canThrow specifies if an error in the {@code bytes}, {@code offset} or {@code length} |
|
617 * arguments should result in an exception or a negative return value |
|
618 * @return 0 on success, -1 if {@code bytes == null && !canThrow}, -2 if {@code !canThrow} and |
|
619 * copying would cause access of data outside array bounds |
615 * @throws NullPointerException if {@code bytes == null} |
620 * @throws NullPointerException if {@code bytes == null} |
616 * @throws IndexOutOfBoundsException if copying would cause access of data outside array bounds |
621 * @throws IndexOutOfBoundsException if copying would cause access of data outside array bounds |
617 */ |
622 */ |
618 native void writeDebugOutput(byte[] bytes, int offset, int length); |
623 native int writeDebugOutput(byte[] bytes, int offset, int length, boolean flush, boolean canThrow); |
619 |
624 |
620 /** |
625 /** |
621 * Flush HotSpot's log stream. |
626 * Flush HotSpot's log stream. |
622 */ |
627 */ |
623 native void flushDebugOutput(); |
628 native void flushDebugOutput(); |
945 * |
950 * |
946 * @return {@code false} if the speculation could not be appended to the list |
951 * @return {@code false} if the speculation could not be appended to the list |
947 */ |
952 */ |
948 native boolean addFailedSpeculation(long failedSpeculationsAddress, byte[] speculation); |
953 native boolean addFailedSpeculation(long failedSpeculationsAddress, byte[] speculation); |
949 |
954 |
|
955 /** |
|
956 * @see HotSpotJVMCIRuntime#isCurrentThreadAttached() |
|
957 */ |
|
958 native boolean isCurrentThreadAttached(); |
|
959 |
|
960 /** |
|
961 * @see HotSpotJVMCIRuntime#attachCurrentThread |
|
962 */ |
|
963 native boolean attachCurrentThread(boolean asDaemon); |
|
964 |
|
965 /** |
|
966 * @see HotSpotJVMCIRuntime#detachCurrentThread() |
|
967 */ |
|
968 native void detachCurrentThread(); |
950 } |
969 } |