equal
deleted
inserted
replaced
4183 JvmtiExport::enter_onload_phase(); |
4183 JvmtiExport::enter_onload_phase(); |
4184 |
4184 |
4185 for (agent = Arguments::agents(); agent != NULL; agent = agent->next()) { |
4185 for (agent = Arguments::agents(); agent != NULL; agent = agent->next()) { |
4186 // CDS dumping does not support native JVMTI agent. |
4186 // CDS dumping does not support native JVMTI agent. |
4187 // CDS dumping supports Java agent if the AllowArchivingWithJavaAgent diagnostic option is specified. |
4187 // CDS dumping supports Java agent if the AllowArchivingWithJavaAgent diagnostic option is specified. |
4188 if (DumpSharedSpaces || DynamicDumpSharedSpaces) { |
4188 if (Arguments::is_dumping_archive()) { |
4189 if(!agent->is_instrument_lib()) { |
4189 if(!agent->is_instrument_lib()) { |
4190 vm_exit_during_cds_dumping("CDS dumping does not support native JVMTI agent, name", agent->name()); |
4190 vm_exit_during_cds_dumping("CDS dumping does not support native JVMTI agent, name", agent->name()); |
4191 } else if (!AllowArchivingWithJavaAgent) { |
4191 } else if (!AllowArchivingWithJavaAgent) { |
4192 vm_exit_during_cds_dumping( |
4192 vm_exit_during_cds_dumping( |
4193 "Must enable AllowArchivingWithJavaAgent in order to run Java agent during CDS dumping"); |
4193 "Must enable AllowArchivingWithJavaAgent in order to run Java agent during CDS dumping"); |