src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java

Print this page

        

*** 610,623 **** /** * Writes {@code length} bytes from {@code bytes} starting at offset {@code offset} to HotSpot's * log stream. * * @throws NullPointerException if {@code bytes == null} * @throws IndexOutOfBoundsException if copying would cause access of data outside array bounds */ ! native void writeDebugOutput(byte[] bytes, int offset, int length); /** * Flush HotSpot's log stream. */ native void flushDebugOutput(); --- 610,628 ---- /** * Writes {@code length} bytes from {@code bytes} starting at offset {@code offset} to HotSpot's * log stream. * + * @param flush specifies if the log stream should be flushed after writing + * @param canThrow specifies if an error in the {@code bytes}, {@code offset} or {@code length} + * arguments should result in an exception or a negative return value + * @return 0 on success, -1 if {@code bytes == null && !canThrow}, -2 if {@code !canThrow} and + * copying would cause access of data outside array bounds * @throws NullPointerException if {@code bytes == null} * @throws IndexOutOfBoundsException if copying would cause access of data outside array bounds */ ! native int writeDebugOutput(byte[] bytes, int offset, int length, boolean flush, boolean canThrow); /** * Flush HotSpot's log stream. */ native void flushDebugOutput();
*** 945,950 **** --- 950,969 ---- * * @return {@code false} if the speculation could not be appended to the list */ native boolean addFailedSpeculation(long failedSpeculationsAddress, byte[] speculation); + /** + * @see HotSpotJVMCIRuntime#isCurrentThreadAttached() + */ + native boolean isCurrentThreadAttached(); + + /** + * @see HotSpotJVMCIRuntime#attachCurrentThread + */ + native boolean attachCurrentThread(boolean asDaemon); + + /** + * @see HotSpotJVMCIRuntime#detachCurrentThread() + */ + native void detachCurrentThread(); }
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File