comparison src/share/vm/graal/graalCompilerToVM.cpp @ 15045:0286888f792b

fix PrintCompilation formatting and use same time source
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 09 Apr 2014 16:33:32 -0700
parents aa1a43bfdf4e
children d4a9d6f6e57d
comparison
equal deleted inserted replaced
15044:5efc947b216b 15045:0286888f792b
768 C2V_END 768 C2V_END
769 769
770 C2V_VMENTRY(jboolean, hasCompiledCodeForOSR, (JNIEnv *env, jobject, jlong metaspace_method, int entry_bci, int comp_level)) 770 C2V_VMENTRY(jboolean, hasCompiledCodeForOSR, (JNIEnv *env, jobject, jlong metaspace_method, int entry_bci, int comp_level))
771 Method* method = asMethod(metaspace_method); 771 Method* method = asMethod(metaspace_method);
772 return method->lookup_osr_nmethod_for(entry_bci, comp_level, true) != NULL; 772 return method->lookup_osr_nmethod_for(entry_bci, comp_level, true) != NULL;
773 C2V_END
774
775 C2V_VMENTRY(jlong, getTimeStamp, (JNIEnv *env, jobject))
776 // tty->time_stamp is the time since VM start which should be used
777 // for all HotSpot log output when a timestamp is required.
778 return tty->time_stamp().milliseconds();
773 C2V_END 779 C2V_END
774 780
775 #define CC (char*) /*cast a literal from (const char*)*/ 781 #define CC (char*) /*cast a literal from (const char*)*/
776 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &(c2v_ ## f)) 782 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &(c2v_ ## f))
777 783
840 {CC"collectCounters", CC"()[J", FN_PTR(collectCounters)}, 846 {CC"collectCounters", CC"()[J", FN_PTR(collectCounters)},
841 {CC"getGPUs", CC"()"STRING, FN_PTR(getGPUs)}, 847 {CC"getGPUs", CC"()"STRING, FN_PTR(getGPUs)},
842 {CC"allocateCompileId", CC"("METASPACE_METHOD"I)I", FN_PTR(allocateCompileId)}, 848 {CC"allocateCompileId", CC"("METASPACE_METHOD"I)I", FN_PTR(allocateCompileId)},
843 {CC"isMature", CC"("METASPACE_METHOD_DATA")Z", FN_PTR(isMature)}, 849 {CC"isMature", CC"("METASPACE_METHOD_DATA")Z", FN_PTR(isMature)},
844 {CC"hasCompiledCodeForOSR", CC"("METASPACE_METHOD"II)Z", FN_PTR(hasCompiledCodeForOSR)}, 850 {CC"hasCompiledCodeForOSR", CC"("METASPACE_METHOD"II)Z", FN_PTR(hasCompiledCodeForOSR)},
851 {CC"getTimeStamp", CC"()J", FN_PTR(getTimeStamp)},
845 }; 852 };
846 853
847 int CompilerToVM_methods_count() { 854 int CompilerToVM_methods_count() {
848 return sizeof(CompilerToVM_methods) / sizeof(JNINativeMethod); 855 return sizeof(CompilerToVM_methods) / sizeof(JNINativeMethod);
849 } 856 }