src/hotspot/share/memory/metaspaceShared.cpp
changeset 52596 dfa02b3f728c
parent 52562 3a9384c12260
child 52631 3009ca99de32
--- a/src/hotspot/share/memory/metaspaceShared.cpp	Fri Nov 16 23:39:51 2018 +0100
+++ b/src/hotspot/share/memory/metaspaceShared.cpp	Fri Nov 16 16:10:25 2018 -0800
@@ -1494,6 +1494,12 @@
   if (PrintSystemDictionaryAtExit) {
     SystemDictionary::print();
   }
+
+  if (AllowArchivingWithJavaAgent) {
+    warning("This archive was created with AllowArchivingWithJavaAgent. It should be used "
+            "for testing purposes only and should not be used in a production environment");
+  }
+
   // There may be other pending VM operations that operate on the InstanceKlasses,
   // which will fail because InstanceKlasses::remove_unshareable_info()
   // has been called. Forget these operations and exit the VM directly.