Lines Matching refs:agent
3639 // management agent fails to start possibly due to
3687 // Find a command line agent library and return its entry point for
3690 static OnLoadEntry_t lookup_on_load(AgentLibrary* agent, const char *on_load_symbols[], size_t num_symbol_entries) {
3692 void *library = agent->os_lib(); // check if we have looked it up before
3697 const char *name = agent->name();
3698 const char *msg = "Could not find agent library ";
3700 if (agent->is_absolute_path()) {
3707 // If we can't find the agent, exit.
3712 // Try to load the agent from the standard dll directory
3724 // If we can't find the agent, exit.
3730 agent->set_os_lib(library);
3742 static OnLoadEntry_t lookup_jvm_on_load(AgentLibrary* agent) {
3744 return lookup_on_load(agent, on_load_symbols, sizeof(on_load_symbols) / sizeof(char*));
3748 static OnLoadEntry_t lookup_agent_on_load(AgentLibrary* agent) {
3750 return lookup_on_load(agent, on_load_symbols, sizeof(on_load_symbols) / sizeof(char*));
3756 // Must be called before agent libraries are created
3758 AgentLibrary* agent;
3761 for (agent = Arguments::libraries(); agent != NULL; agent = next) {
3762 next = agent->next(); // cache the next agent now as this agent may get moved off this list
3763 OnLoadEntry_t on_load_entry = lookup_jvm_on_load(agent);
3768 on_load_entry = lookup_agent_on_load(agent);
3770 // switch it to the agent list -- so that Agent_OnLoad will be called,
3772 Arguments::convert_library_to_agent(agent);
3774 vm_exit_during_initialization("Could not find JVM_OnLoad or Agent_OnLoad function in the library", agent->name());
3785 AgentLibrary* agent;
3788 for (agent = Arguments::agents(); agent != NULL; agent = agent->next()) {
3789 OnLoadEntry_t on_load_entry = lookup_agent_on_load(agent);
3793 jint err = (*on_load_entry)(&main_vm, agent->options(), NULL);
3795 vm_exit_during_initialization("agent library failed to init", agent->name());
3798 vm_exit_during_initialization("Could not find Agent_OnLoad function in the agent library", agent->name());
3812 for (AgentLibrary* agent = Arguments::agents(); agent != NULL; agent = agent->next()) {
3817 os::dll_lookup(agent->os_lib(), on_unload_symbols[symbol_index]));
3831 // Called for after the VM is initialized for -Xrun libraries which have not been converted to agent libraries
3835 AgentLibrary* agent;
3837 for (agent = Arguments::libraries(); agent != NULL; agent = agent->next()) {
3838 OnLoadEntry_t on_load_entry = lookup_jvm_on_load(agent);
3845 jint err = (*on_load_entry)(&main_vm, agent->options(), NULL);
3847 vm_exit_during_initialization("-Xrun library failed to init", agent->name());
3850 vm_exit_during_initialization("Could not find JVM_OnLoad function in -Xrun library", agent->name());