comparison src/share/vm/services/diagnosticCommand.hpp @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 4ca6dc0799b6 f42c10a3d4b1
children f13e777eb255
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
358 } 358 }
359 359
360 virtual void execute(DCmdSource source, TRAPS); 360 virtual void execute(DCmdSource source, TRAPS);
361 }; 361 };
362 362
363 class RotateGCLogDCmd : public DCmd {
364 public:
365 RotateGCLogDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
366 static const char* name() { return "GC.rotate_log"; }
367 static const char* description() {
368 return "Force the GC log file to be rotated.";
369 }
370 static const char* impact() { return "Low"; }
371 virtual void execute(DCmdSource source, TRAPS);
372 static int num_arguments() { return 0; }
373 static const JavaPermission permission() {
374 JavaPermission p = {"java.lang.management.ManagementPermission",
375 "control", NULL};
376 return p;
377 }
378 };
379
363 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP 380 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP