comparison src/hotspot/share/memory/metaspaceShared.cpp @ 53564:dfa02b3f728c

8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping Summary: Allow Java agent during CDS dumping if the AllowArchivingWithJavaAgent dignostic option is specified. Reviewed-by: iklam, jiangli, sspitsyn, dcubed
author ccheung
date Fri, 16 Nov 2018 16:10:25 -0800
parents 3a9384c12260
children 3009ca99de32
comparison
equal deleted inserted replaced
51:ea21096e653a 52:bfb66b29d400
1492 } 1492 }
1493 1493
1494 if (PrintSystemDictionaryAtExit) { 1494 if (PrintSystemDictionaryAtExit) {
1495 SystemDictionary::print(); 1495 SystemDictionary::print();
1496 } 1496 }
1497
1498 if (AllowArchivingWithJavaAgent) {
1499 warning("This archive was created with AllowArchivingWithJavaAgent. It should be used "
1500 "for testing purposes only and should not be used in a production environment");
1501 }
1502
1497 // There may be other pending VM operations that operate on the InstanceKlasses, 1503 // There may be other pending VM operations that operate on the InstanceKlasses,
1498 // which will fail because InstanceKlasses::remove_unshareable_info() 1504 // which will fail because InstanceKlasses::remove_unshareable_info()
1499 // has been called. Forget these operations and exit the VM directly. 1505 // has been called. Forget these operations and exit the VM directly.
1500 vm_direct_exit(0); 1506 vm_direct_exit(0);
1501 } 1507 }