940 jobjectArray obj = codeBlob2objectArray(thread, env, *it); |
940 jobjectArray obj = codeBlob2objectArray(thread, env, *it); |
941 env->SetObjectArrayElement(result, i, obj); |
941 env->SetObjectArrayElement(result, i, obj); |
942 ++i; |
942 ++i; |
943 } |
943 } |
944 return result; |
944 return result; |
|
945 WB_END |
|
946 |
|
947 WB_ENTRY(jint, WB_GetCompilationActivityMode(JNIEnv* env, jobject o)) |
|
948 return CompileBroker::get_compilation_activity_mode(); |
|
949 WB_END |
|
950 |
|
951 WB_ENTRY(jobjectArray, WB_GetCodeBlob(JNIEnv* env, jobject o, jlong addr)) |
|
952 ThreadToNativeFromVM ttn(thread); |
|
953 CodeBlobStub stub((CodeBlob*) addr); |
|
954 return codeBlob2objectArray(thread, env, &stub); |
945 WB_END |
955 WB_END |
946 |
956 |
947 WB_ENTRY(jlong, WB_GetThreadStackSize(JNIEnv* env, jobject o)) |
957 WB_ENTRY(jlong, WB_GetThreadStackSize(JNIEnv* env, jobject o)) |
948 return (jlong) Thread::current()->stack_size(); |
958 return (jlong) Thread::current()->stack_size(); |
949 WB_END |
959 WB_END |
1192 (void*)&WB_GetNMethod }, |
1202 (void*)&WB_GetNMethod }, |
1193 {CC"forceNMethodSweep", CC"()V", (void*)&WB_ForceNMethodSweep }, |
1203 {CC"forceNMethodSweep", CC"()V", (void*)&WB_ForceNMethodSweep }, |
1194 {CC"allocateCodeBlob", CC"(II)J", (void*)&WB_AllocateCodeBlob }, |
1204 {CC"allocateCodeBlob", CC"(II)J", (void*)&WB_AllocateCodeBlob }, |
1195 {CC"freeCodeBlob", CC"(J)V", (void*)&WB_FreeCodeBlob }, |
1205 {CC"freeCodeBlob", CC"(J)V", (void*)&WB_FreeCodeBlob }, |
1196 {CC"getCodeHeapEntries", CC"(I)[Ljava/lang/Object;",(void*)&WB_GetCodeHeapEntries }, |
1206 {CC"getCodeHeapEntries", CC"(I)[Ljava/lang/Object;",(void*)&WB_GetCodeHeapEntries }, |
|
1207 {CC"getCompilationActivityMode", |
|
1208 CC"()I", (void*)&WB_GetCompilationActivityMode}, |
|
1209 {CC"getCodeBlob", CC"(J)[Ljava/lang/Object;",(void*)&WB_GetCodeBlob }, |
1197 {CC"getThreadStackSize", CC"()J", (void*)&WB_GetThreadStackSize }, |
1210 {CC"getThreadStackSize", CC"()J", (void*)&WB_GetThreadStackSize }, |
1198 {CC"getThreadRemainingStackSize", CC"()J", (void*)&WB_GetThreadRemainingStackSize }, |
1211 {CC"getThreadRemainingStackSize", CC"()J", (void*)&WB_GetThreadRemainingStackSize }, |
1199 }; |
1212 }; |
1200 |
1213 |
1201 #undef CC |
1214 #undef CC |