Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 14172:cd22c8dbda4f
Made graph caching compilation local
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 13 Mar 2014 15:36:30 +0100 |
parents | 2b2f0022900f |
children | 82c3b54d1f08 |
comparison
equal
deleted
inserted
replaced
14171:8c0e92c8c45b | 14172:cd22c8dbda4f |
---|---|
675 return JNIHandles::make_local((oop) result.get_jobject()); | 675 return JNIHandles::make_local((oop) result.get_jobject()); |
676 } else { | 676 } else { |
677 oop o = java_lang_boxing_object::create(jap.get_ret_type(), (jvalue *) result.get_value_addr(), CHECK_NULL); | 677 oop o = java_lang_boxing_object::create(jap.get_ret_type(), (jvalue *) result.get_value_addr(), CHECK_NULL); |
678 return JNIHandles::make_local(o); | 678 return JNIHandles::make_local(o); |
679 } | 679 } |
680 C2V_END | |
681 | |
682 C2V_VMENTRY(jobject, getDeoptedLeafGraphIds, (JNIEnv *, jobject)) | |
683 | |
684 // the contract for this method is as follows: | |
685 // returning null: no deopted leaf graphs | |
686 // returning array (size > 0): the ids of the deopted leaf graphs | |
687 // returning array (size == 0): there was an overflow, the compiler needs to clear its cache completely | |
688 | |
689 oop array = GraalCompiler::instance()->dump_deopted_leaf_graphs(CHECK_NULL); | |
690 return JNIHandles::make_local(array); | |
691 C2V_END | 680 C2V_END |
692 | 681 |
693 C2V_ENTRY(jlongArray, getLineNumberTable, (JNIEnv *env, jobject, jlong metaspace_method)) | 682 C2V_ENTRY(jlongArray, getLineNumberTable, (JNIEnv *env, jobject, jlong metaspace_method)) |
694 Method* method = (Method*) metaspace_method; | 683 Method* method = (Method*) metaspace_method; |
695 if (!method->has_linenumber_table()) { | 684 if (!method->has_linenumber_table()) { |
867 {CC"notifyCompilationStatistics", CC"(I"HS_RESOLVED_METHOD"ZIJJ"HS_INSTALLED_CODE")V", FN_PTR(notifyCompilationStatistics)}, | 856 {CC"notifyCompilationStatistics", CC"(I"HS_RESOLVED_METHOD"ZIJJ"HS_INSTALLED_CODE")V", FN_PTR(notifyCompilationStatistics)}, |
868 {CC"printCompilationStatistics", CC"(ZZ)V", FN_PTR(printCompilationStatistics)}, | 857 {CC"printCompilationStatistics", CC"(ZZ)V", FN_PTR(printCompilationStatistics)}, |
869 {CC"resetCompilationStatistics", CC"()V", FN_PTR(resetCompilationStatistics)}, | 858 {CC"resetCompilationStatistics", CC"()V", FN_PTR(resetCompilationStatistics)}, |
870 {CC"disassembleCodeBlob", CC"(J)"STRING, FN_PTR(disassembleCodeBlob)}, | 859 {CC"disassembleCodeBlob", CC"(J)"STRING, FN_PTR(disassembleCodeBlob)}, |
871 {CC"executeCompiledMethodVarargs", CC"(["OBJECT HS_INSTALLED_CODE")"OBJECT, FN_PTR(executeCompiledMethodVarargs)}, | 860 {CC"executeCompiledMethodVarargs", CC"(["OBJECT HS_INSTALLED_CODE")"OBJECT, FN_PTR(executeCompiledMethodVarargs)}, |
872 {CC"getDeoptedLeafGraphIds", CC"()[J", FN_PTR(getDeoptedLeafGraphIds)}, | |
873 {CC"getLineNumberTable", CC"("METASPACE_METHOD")[J", FN_PTR(getLineNumberTable)}, | 861 {CC"getLineNumberTable", CC"("METASPACE_METHOD")[J", FN_PTR(getLineNumberTable)}, |
874 {CC"getLocalVariableTableStart", CC"("METASPACE_METHOD")J", FN_PTR(getLocalVariableTableStart)}, | 862 {CC"getLocalVariableTableStart", CC"("METASPACE_METHOD")J", FN_PTR(getLocalVariableTableStart)}, |
875 {CC"getLocalVariableTableLength", CC"("METASPACE_METHOD")I", FN_PTR(getLocalVariableTableLength)}, | 863 {CC"getLocalVariableTableLength", CC"("METASPACE_METHOD")I", FN_PTR(getLocalVariableTableLength)}, |
876 {CC"reprofile", CC"("METASPACE_METHOD")V", FN_PTR(reprofile)}, | 864 {CC"reprofile", CC"("METASPACE_METHOD")V", FN_PTR(reprofile)}, |
877 {CC"invalidateInstalledCode", CC"("HS_INSTALLED_CODE")V", FN_PTR(invalidateInstalledCode)}, | 865 {CC"invalidateInstalledCode", CC"("HS_INSTALLED_CODE")V", FN_PTR(invalidateInstalledCode)}, |