Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 21119:294ed4ce1fa0
PrintStreamOption: also forward flushes to the VM
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Fri, 24 Apr 2015 17:27:32 +0200 |
parents | 23433619a7cd |
children | b7f05f4ca66e |
comparison
equal
deleted
inserted
replaced
21118:ae4941602cfa | 21119:294ed4ce1fa0 |
---|---|
1015 jbyte* start = ((typeArrayOop) JNIHandles::resolve(bytes))->byte_at_addr(offset); | 1015 jbyte* start = ((typeArrayOop) JNIHandles::resolve(bytes))->byte_at_addr(offset); |
1016 tty->write((char*) start, MIN2(length, O_BUFLEN)); | 1016 tty->write((char*) start, MIN2(length, O_BUFLEN)); |
1017 length -= O_BUFLEN; | 1017 length -= O_BUFLEN; |
1018 offset += O_BUFLEN; | 1018 offset += O_BUFLEN; |
1019 } | 1019 } |
1020 C2V_END | |
1021 | |
1022 C2V_VMENTRY(void, flushDebugOutput, (JNIEnv*, jobject)) | |
1023 tty->flush(); | |
1020 C2V_END | 1024 C2V_END |
1021 | 1025 |
1022 | 1026 |
1023 #define CC (char*) /*cast a literal from (const char*)*/ | 1027 #define CC (char*) /*cast a literal from (const char*)*/ |
1024 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &(c2v_ ## f)) | 1028 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &(c2v_ ## f)) |
1097 {CC"getTimeStamp", CC"()J", FN_PTR(getTimeStamp)}, | 1101 {CC"getTimeStamp", CC"()J", FN_PTR(getTimeStamp)}, |
1098 {CC"getNextStackFrame", CC"("HS_STACK_FRAME_REF "[JI)"HS_STACK_FRAME_REF, FN_PTR(getNextStackFrame)}, | 1102 {CC"getNextStackFrame", CC"("HS_STACK_FRAME_REF "[JI)"HS_STACK_FRAME_REF, FN_PTR(getNextStackFrame)}, |
1099 {CC"materializeVirtualObjects", CC"("HS_STACK_FRAME_REF"Z)V", FN_PTR(materializeVirtualObjects)}, | 1103 {CC"materializeVirtualObjects", CC"("HS_STACK_FRAME_REF"Z)V", FN_PTR(materializeVirtualObjects)}, |
1100 {CC"shouldDebugNonSafepoints", CC"()Z", FN_PTR(shouldDebugNonSafepoints)}, | 1104 {CC"shouldDebugNonSafepoints", CC"()Z", FN_PTR(shouldDebugNonSafepoints)}, |
1101 {CC"writeDebugOutput", CC"([BII)V", FN_PTR(writeDebugOutput)}, | 1105 {CC"writeDebugOutput", CC"([BII)V", FN_PTR(writeDebugOutput)}, |
1106 {CC"flushDebugOutput", CC"()V", FN_PTR(flushDebugOutput)}, | |
1102 }; | 1107 }; |
1103 | 1108 |
1104 int CompilerToVM_methods_count() { | 1109 int CompilerToVM_methods_count() { |
1105 return sizeof(CompilerToVM_methods) / sizeof(JNINativeMethod); | 1110 return sizeof(CompilerToVM_methods) / sizeof(JNINativeMethod); |
1106 } | 1111 } |