src/hotspot/share/runtime/thread.cpp
changeset 58447 319173c62caa
parent 58291 a013100f7a35
child 58478 78de3ec29f1e
child 58488 165b193b30dd
equal deleted inserted replaced
58446:5c83830390ba 58447:319173c62caa
  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");