< prev index next >

hotspot/src/share/vm/prims/whitebox.cpp

Print this page




1279         if (env->IsInstanceOf(throwable_obj, no_such_method_error_klass)) {
1280           // NoSuchMethodError is thrown when a method can't be found or a method is not native.
1281           // Ignoring the exception since it is not preventing use of other WhiteBox methods.
1282           tty->print_cr("Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::%s%s",
1283               method_array[i].name, method_array[i].signature);
1284         }
1285       } else {
1286         // Registration failed unexpectedly.
1287         tty->print_cr("Warning: unexpected error on register of sun.hotspot.WhiteBox::%s%s. All methods will be unregistered",
1288             method_array[i].name, method_array[i].signature);
1289         env->UnregisterNatives(wbclass);
1290         break;
1291       }
1292     }
1293   }
1294 }
1295 
1296 #define CC (char*)
1297 
1298 static JNINativeMethod methods[] = {
1299   {CC"getObjectAddress",   CC"(Ljava/lang/Object;)J", (void*)&WB_GetObjectAddress  },
1300   {CC"getObjectSize",      CC"(Ljava/lang/Object;)J", (void*)&WB_GetObjectSize     },
1301   {CC"isObjectInOldGen",   CC"(Ljava/lang/Object;)Z", (void*)&WB_isObjectInOldGen  },
1302   {CC"getHeapOopSize",     CC"()I",                   (void*)&WB_GetHeapOopSize    },
1303   {CC"getVMPageSize",      CC"()I",                   (void*)&WB_GetVMPageSize     },
1304   {CC"isClassAlive0",      CC"(Ljava/lang/String;)Z", (void*)&WB_IsClassAlive      },
1305   {CC"parseCommandLine",
1306       CC"(Ljava/lang/String;C[Lsun/hotspot/parser/DiagnosticCommand;)[Ljava/lang/Object;",
1307       (void*) &WB_ParseCommandLine
1308   },
1309   {CC"addToBootstrapClassLoaderSearch", CC"(Ljava/lang/String;)V",
1310                                                       (void*)&WB_AddToBootstrapClassLoaderSearch},
1311   {CC"addToSystemClassLoaderSearch",    CC"(Ljava/lang/String;)V",
1312                                                       (void*)&WB_AddToSystemClassLoaderSearch},
1313   {CC"getCompressedOopsMaxHeapSize", CC"()J",
1314       (void*)&WB_GetCompressedOopsMaxHeapSize},
1315   {CC"printHeapSizes",     CC"()V",                   (void*)&WB_PrintHeapSizes    },
1316   {CC"runMemoryUnitTests", CC"()V",                   (void*)&WB_RunMemoryUnitTests},
1317   {CC"readFromNoaccessArea",CC"()V",                  (void*)&WB_ReadFromNoaccessArea},
1318   {CC"stressVirtualSpaceResize",CC"(JJJ)I",           (void*)&WB_StressVirtualSpaceResize},
1319 #if INCLUDE_ALL_GCS
1320   {CC"g1InConcurrentMark", CC"()Z",                   (void*)&WB_G1InConcurrentMark},
1321   {CC"g1IsHumongous",      CC"(Ljava/lang/Object;)Z", (void*)&WB_G1IsHumongous     },
1322   {CC"g1NumMaxRegions",    CC"()J",                   (void*)&WB_G1NumMaxRegions  },
1323   {CC"g1NumFreeRegions",   CC"()J",                   (void*)&WB_G1NumFreeRegions  },
1324   {CC"g1RegionSize",       CC"()I",                   (void*)&WB_G1RegionSize      },
1325   {CC"g1StartConcMarkCycle",       CC"()Z",           (void*)&WB_G1StartMarkCycle  },
1326   {CC"g1AuxiliaryMemoryUsage", CC"()Ljava/lang/management/MemoryUsage;",
1327                                                       (void*)&WB_G1AuxiliaryMemoryUsage  },
1328 #endif // INCLUDE_ALL_GCS
1329 #if INCLUDE_NMT
1330   {CC"NMTMalloc",           CC"(J)J",                 (void*)&WB_NMTMalloc          },
1331   {CC"NMTMallocWithPseudoStack", CC"(JI)J",           (void*)&WB_NMTMallocWithPseudoStack},
1332   {CC"NMTFree",             CC"(J)V",                 (void*)&WB_NMTFree            },
1333   {CC"NMTReserveMemory",    CC"(J)J",                 (void*)&WB_NMTReserveMemory   },
1334   {CC"NMTCommitMemory",     CC"(JJ)V",                (void*)&WB_NMTCommitMemory    },
1335   {CC"NMTUncommitMemory",   CC"(JJ)V",                (void*)&WB_NMTUncommitMemory  },
1336   {CC"NMTReleaseMemory",    CC"(JJ)V",                (void*)&WB_NMTReleaseMemory   },
1337   {CC"NMTChangeTrackingLevel", CC"()Z",               (void*)&WB_NMTChangeTrackingLevel},
1338   {CC"NMTGetHashSize",      CC"()I",                  (void*)&WB_NMTGetHashSize     },
1339 #endif // INCLUDE_NMT
1340   {CC"deoptimizeFrames",   CC"(Z)I",                  (void*)&WB_DeoptimizeFrames  },
1341   {CC"deoptimizeAll",      CC"()V",                   (void*)&WB_DeoptimizeAll     },
1342   {CC"deoptimizeMethod",   CC"(Ljava/lang/reflect/Executable;Z)I",
1343                                                       (void*)&WB_DeoptimizeMethod  },
1344   {CC"isMethodCompiled",   CC"(Ljava/lang/reflect/Executable;Z)Z",
1345                                                       (void*)&WB_IsMethodCompiled  },
1346   {CC"isMethodCompilable", CC"(Ljava/lang/reflect/Executable;IZ)Z",
1347                                                       (void*)&WB_IsMethodCompilable},
1348   {CC"isMethodQueuedForCompilation",
1349       CC"(Ljava/lang/reflect/Executable;)Z",          (void*)&WB_IsMethodQueuedForCompilation},
1350   {CC"makeMethodNotCompilable",
1351       CC"(Ljava/lang/reflect/Executable;IZ)V",        (void*)&WB_MakeMethodNotCompilable},
1352   {CC"testSetDontInlineMethod",
1353       CC"(Ljava/lang/reflect/Executable;Z)Z",         (void*)&WB_TestSetDontInlineMethod},
1354   {CC"getMethodCompilationLevel",
1355       CC"(Ljava/lang/reflect/Executable;Z)I",         (void*)&WB_GetMethodCompilationLevel},
1356   {CC"getMethodEntryBci",
1357       CC"(Ljava/lang/reflect/Executable;)I",          (void*)&WB_GetMethodEntryBci},
1358   {CC"getCompileQueueSize",
1359       CC"(I)I",                                       (void*)&WB_GetCompileQueueSize},
1360   {CC"testSetForceInlineMethod",
1361       CC"(Ljava/lang/reflect/Executable;Z)Z",         (void*)&WB_TestSetForceInlineMethod},
1362   {CC"enqueueMethodForCompilation",
1363       CC"(Ljava/lang/reflect/Executable;II)Z",        (void*)&WB_EnqueueMethodForCompilation},
1364   {CC"clearMethodState",
1365       CC"(Ljava/lang/reflect/Executable;)V",          (void*)&WB_ClearMethodState},
1366   {CC"lockCompilation",    CC"()V",                   (void*)&WB_LockCompilation},
1367   {CC"unlockCompilation",  CC"()V",                   (void*)&WB_UnlockCompilation},
1368   {CC"isConstantVMFlag",   CC"(Ljava/lang/String;)Z", (void*)&WB_IsConstantVMFlag},
1369   {CC"isLockedVMFlag",     CC"(Ljava/lang/String;)Z", (void*)&WB_IsLockedVMFlag},
1370   {CC"setBooleanVMFlag",   CC"(Ljava/lang/String;Z)V",(void*)&WB_SetBooleanVMFlag},
1371   {CC"setIntxVMFlag",      CC"(Ljava/lang/String;J)V",(void*)&WB_SetIntxVMFlag},
1372   {CC"setUintxVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetUintxVMFlag},
1373   {CC"setUint64VMFlag",    CC"(Ljava/lang/String;J)V",(void*)&WB_SetUint64VMFlag},
1374   {CC"setSizeTVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetSizeTVMFlag},
1375   {CC"setDoubleVMFlag",    CC"(Ljava/lang/String;D)V",(void*)&WB_SetDoubleVMFlag},
1376   {CC"setStringVMFlag",    CC"(Ljava/lang/String;Ljava/lang/String;)V",
1377                                                       (void*)&WB_SetStringVMFlag},
1378   {CC"getBooleanVMFlag",   CC"(Ljava/lang/String;)Ljava/lang/Boolean;",
1379                                                       (void*)&WB_GetBooleanVMFlag},
1380   {CC"getIntxVMFlag",      CC"(Ljava/lang/String;)Ljava/lang/Long;",
1381                                                       (void*)&WB_GetIntxVMFlag},
1382   {CC"getUintxVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
1383                                                       (void*)&WB_GetUintxVMFlag},
1384   {CC"getUint64VMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Long;",
1385                                                       (void*)&WB_GetUint64VMFlag},
1386   {CC"getSizeTVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
1387                                                       (void*)&WB_GetSizeTVMFlag},
1388   {CC"getDoubleVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Double;",
1389                                                       (void*)&WB_GetDoubleVMFlag},
1390   {CC"getStringVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/String;",
1391                                                       (void*)&WB_GetStringVMFlag},
1392   {CC"isInStringTable",    CC"(Ljava/lang/String;)Z", (void*)&WB_IsInStringTable  },
1393   {CC"fullGC",   CC"()V",                             (void*)&WB_FullGC },
1394   {CC"youngGC",  CC"()V",                             (void*)&WB_YoungGC },
1395   {CC"readReservedMemory", CC"()V",                   (void*)&WB_ReadReservedMemory },
1396   {CC"allocateMetaspace",
1397      CC"(Ljava/lang/ClassLoader;J)J",                 (void*)&WB_AllocateMetaspace },
1398   {CC"freeMetaspace",
1399      CC"(Ljava/lang/ClassLoader;JJ)V",                (void*)&WB_FreeMetaspace },
1400   {CC"incMetaspaceCapacityUntilGC", CC"(J)J",         (void*)&WB_IncMetaspaceCapacityUntilGC },
1401   {CC"metaspaceCapacityUntilGC", CC"()J",             (void*)&WB_MetaspaceCapacityUntilGC },
1402   {CC"getCPUFeatures",     CC"()Ljava/lang/String;",  (void*)&WB_GetCPUFeatures     },
1403   {CC"getNMethod",         CC"(Ljava/lang/reflect/Executable;Z)[Ljava/lang/Object;",
1404                                                       (void*)&WB_GetNMethod         },
1405   {CC"forceNMethodSweep0", CC"()Ljava/lang/Thread;",  (void*)&WB_ForceNMethodSweep  },
1406   {CC"allocateCodeBlob",   CC"(II)J",                 (void*)&WB_AllocateCodeBlob   },
1407   {CC"freeCodeBlob",       CC"(J)V",                  (void*)&WB_FreeCodeBlob       },
1408   {CC"getCodeHeapEntries", CC"(I)[Ljava/lang/Object;",(void*)&WB_GetCodeHeapEntries },
1409   {CC"getCompilationActivityMode",
1410                            CC"()I",                   (void*)&WB_GetCompilationActivityMode},
1411   {CC"getCodeBlob",        CC"(J)[Ljava/lang/Object;",(void*)&WB_GetCodeBlob        },
1412   {CC"getThreadStackSize", CC"()J",                   (void*)&WB_GetThreadStackSize },
1413   {CC"getThreadRemainingStackSize", CC"()J",          (void*)&WB_GetThreadRemainingStackSize },
1414   {CC"assertMatchingSafepointCalls", CC"(ZZ)V",       (void*)&WB_AssertMatchingSafepointCalls },
1415   {CC"isMonitorInflated",  CC"(Ljava/lang/Object;)Z", (void*)&WB_IsMonitorInflated  },
1416   {CC"forceSafepoint",     CC"()V",                   (void*)&WB_ForceSafepoint     },
1417   {CC"getMethodBooleanOption",
1418       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Boolean;",
1419                                                       (void*)&WB_GetMethodBooleaneOption},
1420   {CC"getMethodIntxOption",
1421       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
1422                                                       (void*)&WB_GetMethodIntxOption},
1423   {CC"getMethodUintxOption",
1424       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
1425                                                       (void*)&WB_GetMethodUintxOption},
1426   {CC"getMethodDoubleOption",
1427       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Double;",
1428                                                       (void*)&WB_GetMethodDoubleOption},
1429   {CC"getMethodStringOption",
1430       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/String;",
1431                                                       (void*)&WB_GetMethodStringOption},
1432 };
1433 
1434 #undef CC
1435 


1279         if (env->IsInstanceOf(throwable_obj, no_such_method_error_klass)) {
1280           // NoSuchMethodError is thrown when a method can't be found or a method is not native.
1281           // Ignoring the exception since it is not preventing use of other WhiteBox methods.
1282           tty->print_cr("Warning: 'NoSuchMethodError' on register of sun.hotspot.WhiteBox::%s%s",
1283               method_array[i].name, method_array[i].signature);
1284         }
1285       } else {
1286         // Registration failed unexpectedly.
1287         tty->print_cr("Warning: unexpected error on register of sun.hotspot.WhiteBox::%s%s. All methods will be unregistered",
1288             method_array[i].name, method_array[i].signature);
1289         env->UnregisterNatives(wbclass);
1290         break;
1291       }
1292     }
1293   }
1294 }
1295 
1296 #define CC (char*)
1297 
1298 static JNINativeMethod methods[] = {
1299   {CC"getObjectAddress0",   CC"(Ljava/lang/Object;)J", (void*)&WB_GetObjectAddress  },
1300   {CC"getObjectSize0",      CC"(Ljava/lang/Object;)J", (void*)&WB_GetObjectSize     },
1301   {CC"isObjectInOldGen0",   CC"(Ljava/lang/Object;)Z", (void*)&WB_isObjectInOldGen  },
1302   {CC"getHeapOopSize",     CC"()I",                   (void*)&WB_GetHeapOopSize    },
1303   {CC"getVMPageSize",      CC"()I",                   (void*)&WB_GetVMPageSize     },
1304   {CC"isClassAlive0",      CC"(Ljava/lang/String;)Z", (void*)&WB_IsClassAlive      },
1305   {CC"parseCommandLine0",
1306       CC"(Ljava/lang/String;C[Lsun/hotspot/parser/DiagnosticCommand;)[Ljava/lang/Object;",
1307       (void*) &WB_ParseCommandLine
1308   },
1309   {CC"addToBootstrapClassLoaderSearch0", CC"(Ljava/lang/String;)V",
1310                                                       (void*)&WB_AddToBootstrapClassLoaderSearch},
1311   {CC"addToSystemClassLoaderSearch0",    CC"(Ljava/lang/String;)V",
1312                                                       (void*)&WB_AddToSystemClassLoaderSearch},
1313   {CC"getCompressedOopsMaxHeapSize", CC"()J",
1314       (void*)&WB_GetCompressedOopsMaxHeapSize},
1315   {CC"printHeapSizes",     CC"()V",                   (void*)&WB_PrintHeapSizes    },
1316   {CC"runMemoryUnitTests", CC"()V",                   (void*)&WB_RunMemoryUnitTests},
1317   {CC"readFromNoaccessArea",CC"()V",                  (void*)&WB_ReadFromNoaccessArea},
1318   {CC"stressVirtualSpaceResize",CC"(JJJ)I",           (void*)&WB_StressVirtualSpaceResize},
1319 #if INCLUDE_ALL_GCS
1320   {CC"g1InConcurrentMark", CC"()Z",                   (void*)&WB_G1InConcurrentMark},
1321   {CC"g1IsHumongous0",      CC"(Ljava/lang/Object;)Z", (void*)&WB_G1IsHumongous     },
1322   {CC"g1NumMaxRegions",    CC"()J",                   (void*)&WB_G1NumMaxRegions  },
1323   {CC"g1NumFreeRegions",   CC"()J",                   (void*)&WB_G1NumFreeRegions  },
1324   {CC"g1RegionSize",       CC"()I",                   (void*)&WB_G1RegionSize      },
1325   {CC"g1StartConcMarkCycle",       CC"()Z",           (void*)&WB_G1StartMarkCycle  },
1326   {CC"g1AuxiliaryMemoryUsage", CC"()Ljava/lang/management/MemoryUsage;",
1327                                                       (void*)&WB_G1AuxiliaryMemoryUsage  },
1328 #endif // INCLUDE_ALL_GCS
1329 #if INCLUDE_NMT
1330   {CC"NMTMalloc",           CC"(J)J",                 (void*)&WB_NMTMalloc          },
1331   {CC"NMTMallocWithPseudoStack", CC"(JI)J",           (void*)&WB_NMTMallocWithPseudoStack},
1332   {CC"NMTFree",             CC"(J)V",                 (void*)&WB_NMTFree            },
1333   {CC"NMTReserveMemory",    CC"(J)J",                 (void*)&WB_NMTReserveMemory   },
1334   {CC"NMTCommitMemory",     CC"(JJ)V",                (void*)&WB_NMTCommitMemory    },
1335   {CC"NMTUncommitMemory",   CC"(JJ)V",                (void*)&WB_NMTUncommitMemory  },
1336   {CC"NMTReleaseMemory",    CC"(JJ)V",                (void*)&WB_NMTReleaseMemory   },
1337   {CC"NMTChangeTrackingLevel", CC"()Z",               (void*)&WB_NMTChangeTrackingLevel},
1338   {CC"NMTGetHashSize",      CC"()I",                  (void*)&WB_NMTGetHashSize     },
1339 #endif // INCLUDE_NMT
1340   {CC"deoptimizeFrames",   CC"(Z)I",                  (void*)&WB_DeoptimizeFrames  },
1341   {CC"deoptimizeAll",      CC"()V",                   (void*)&WB_DeoptimizeAll     },
1342   {CC"deoptimizeMethod0",   CC"(Ljava/lang/reflect/Executable;Z)I",
1343                                                       (void*)&WB_DeoptimizeMethod  },
1344   {CC"isMethodCompiled0",   CC"(Ljava/lang/reflect/Executable;Z)Z",
1345                                                       (void*)&WB_IsMethodCompiled  },
1346   {CC"isMethodCompilable0", CC"(Ljava/lang/reflect/Executable;IZ)Z",
1347                                                       (void*)&WB_IsMethodCompilable},
1348   {CC"isMethodQueuedForCompilation0",
1349       CC"(Ljava/lang/reflect/Executable;)Z",          (void*)&WB_IsMethodQueuedForCompilation},
1350   {CC"makeMethodNotCompilable0",
1351       CC"(Ljava/lang/reflect/Executable;IZ)V",        (void*)&WB_MakeMethodNotCompilable},
1352   {CC"testSetDontInlineMethod0",
1353       CC"(Ljava/lang/reflect/Executable;Z)Z",         (void*)&WB_TestSetDontInlineMethod},
1354   {CC"getMethodCompilationLevel0",
1355       CC"(Ljava/lang/reflect/Executable;Z)I",         (void*)&WB_GetMethodCompilationLevel},
1356   {CC"getMethodEntryBci0",
1357       CC"(Ljava/lang/reflect/Executable;)I",          (void*)&WB_GetMethodEntryBci},
1358   {CC"getCompileQueueSize",
1359       CC"(I)I",                                       (void*)&WB_GetCompileQueueSize},
1360   {CC"testSetForceInlineMethod0",
1361       CC"(Ljava/lang/reflect/Executable;Z)Z",         (void*)&WB_TestSetForceInlineMethod},
1362   {CC"enqueueMethodForCompilation0",
1363       CC"(Ljava/lang/reflect/Executable;II)Z",        (void*)&WB_EnqueueMethodForCompilation},
1364   {CC"clearMethodState0",
1365       CC"(Ljava/lang/reflect/Executable;)V",          (void*)&WB_ClearMethodState},
1366   {CC"lockCompilation",    CC"()V",                   (void*)&WB_LockCompilation},
1367   {CC"unlockCompilation",  CC"()V",                   (void*)&WB_UnlockCompilation},
1368   {CC"isConstantVMFlag",   CC"(Ljava/lang/String;)Z", (void*)&WB_IsConstantVMFlag},
1369   {CC"isLockedVMFlag",     CC"(Ljava/lang/String;)Z", (void*)&WB_IsLockedVMFlag},
1370   {CC"setBooleanVMFlag",   CC"(Ljava/lang/String;Z)V",(void*)&WB_SetBooleanVMFlag},
1371   {CC"setIntxVMFlag",      CC"(Ljava/lang/String;J)V",(void*)&WB_SetIntxVMFlag},
1372   {CC"setUintxVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetUintxVMFlag},
1373   {CC"setUint64VMFlag",    CC"(Ljava/lang/String;J)V",(void*)&WB_SetUint64VMFlag},
1374   {CC"setSizeTVMFlag",     CC"(Ljava/lang/String;J)V",(void*)&WB_SetSizeTVMFlag},
1375   {CC"setDoubleVMFlag",    CC"(Ljava/lang/String;D)V",(void*)&WB_SetDoubleVMFlag},
1376   {CC"setStringVMFlag",    CC"(Ljava/lang/String;Ljava/lang/String;)V",
1377                                                       (void*)&WB_SetStringVMFlag},
1378   {CC"getBooleanVMFlag",   CC"(Ljava/lang/String;)Ljava/lang/Boolean;",
1379                                                       (void*)&WB_GetBooleanVMFlag},
1380   {CC"getIntxVMFlag",      CC"(Ljava/lang/String;)Ljava/lang/Long;",
1381                                                       (void*)&WB_GetIntxVMFlag},
1382   {CC"getUintxVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
1383                                                       (void*)&WB_GetUintxVMFlag},
1384   {CC"getUint64VMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Long;",
1385                                                       (void*)&WB_GetUint64VMFlag},
1386   {CC"getSizeTVMFlag",     CC"(Ljava/lang/String;)Ljava/lang/Long;",
1387                                                       (void*)&WB_GetSizeTVMFlag},
1388   {CC"getDoubleVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/Double;",
1389                                                       (void*)&WB_GetDoubleVMFlag},
1390   {CC"getStringVMFlag",    CC"(Ljava/lang/String;)Ljava/lang/String;",
1391                                                       (void*)&WB_GetStringVMFlag},
1392   {CC"isInStringTable",    CC"(Ljava/lang/String;)Z", (void*)&WB_IsInStringTable  },
1393   {CC"fullGC",   CC"()V",                             (void*)&WB_FullGC },
1394   {CC"youngGC",  CC"()V",                             (void*)&WB_YoungGC },
1395   {CC"readReservedMemory", CC"()V",                   (void*)&WB_ReadReservedMemory },
1396   {CC"allocateMetaspace",
1397      CC"(Ljava/lang/ClassLoader;J)J",                 (void*)&WB_AllocateMetaspace },
1398   {CC"freeMetaspace",
1399      CC"(Ljava/lang/ClassLoader;JJ)V",                (void*)&WB_FreeMetaspace },
1400   {CC"incMetaspaceCapacityUntilGC", CC"(J)J",         (void*)&WB_IncMetaspaceCapacityUntilGC },
1401   {CC"metaspaceCapacityUntilGC", CC"()J",             (void*)&WB_MetaspaceCapacityUntilGC },
1402   {CC"getCPUFeatures",     CC"()Ljava/lang/String;",  (void*)&WB_GetCPUFeatures     },
1403   {CC"getNMethod0",         CC"(Ljava/lang/reflect/Executable;Z)[Ljava/lang/Object;",
1404                                                       (void*)&WB_GetNMethod         },
1405   {CC"forceNMethodSweep0", CC"()Ljava/lang/Thread;",  (void*)&WB_ForceNMethodSweep  },
1406   {CC"allocateCodeBlob",   CC"(II)J",                 (void*)&WB_AllocateCodeBlob   },
1407   {CC"freeCodeBlob",       CC"(J)V",                  (void*)&WB_FreeCodeBlob       },
1408   {CC"getCodeHeapEntries", CC"(I)[Ljava/lang/Object;",(void*)&WB_GetCodeHeapEntries },
1409   {CC"getCompilationActivityMode",
1410                            CC"()I",                   (void*)&WB_GetCompilationActivityMode},
1411   {CC"getCodeBlob",        CC"(J)[Ljava/lang/Object;",(void*)&WB_GetCodeBlob        },
1412   {CC"getThreadStackSize", CC"()J",                   (void*)&WB_GetThreadStackSize },
1413   {CC"getThreadRemainingStackSize", CC"()J",          (void*)&WB_GetThreadRemainingStackSize },
1414   {CC"assertMatchingSafepointCalls", CC"(ZZ)V",       (void*)&WB_AssertMatchingSafepointCalls },
1415   {CC"isMonitorInflated0",  CC"(Ljava/lang/Object;)Z", (void*)&WB_IsMonitorInflated  },
1416   {CC"forceSafepoint",     CC"()V",                   (void*)&WB_ForceSafepoint     },
1417   {CC"getMethodBooleanOption",
1418       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Boolean;",
1419                                                       (void*)&WB_GetMethodBooleaneOption},
1420   {CC"getMethodIntxOption",
1421       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
1422                                                       (void*)&WB_GetMethodIntxOption},
1423   {CC"getMethodUintxOption",
1424       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
1425                                                       (void*)&WB_GetMethodUintxOption},
1426   {CC"getMethodDoubleOption",
1427       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Double;",
1428                                                       (void*)&WB_GetMethodDoubleOption},
1429   {CC"getMethodStringOption",
1430       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/String;",
1431                                                       (void*)&WB_GetMethodStringOption},
1432 };
1433 
1434 #undef CC
1435 
< prev index next >