You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arguments-java8u40.patch 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # HG changeset patch
  2. # Parent 7e9e421e88b58544d31212dd6961cdf51be5e5aa
  3. diff -r 7e9e421e88b5 src/share/vm/runtime/arguments.cpp
  4. --- a/src/share/vm/runtime/arguments.cpp Wed Apr 01 14:45:44 2015 -0700
  5. +++ b/src/share/vm/runtime/arguments.cpp Mon Apr 06 10:54:01 2015 -0700
  6. @@ -65,8 +65,8 @@
  7. #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
  8. #endif // INCLUDE_ALL_GCS
  9. -// Note: This is a special bug reporting site for the JVM
  10. -#define DEFAULT_VENDOR_URL_BUG "http://bugreport.java.com/bugreport/crash.jsp"
  11. +// (DCEVM) The DCE VM has its own JIRA bug tracking system.
  12. +#define DEFAULT_VENDOR_URL_BUG "https://github.com/dcevm/dcevm/issues"
  13. #define DEFAULT_JAVA_LAUNCHER "generic"
  14. // Disable options not supported in this release, with a warning if they
  15. @@ -1561,7 +1561,10 @@
  16. }
  17. void Arguments::select_gc_ergonomically() {
  18. - if (os::is_server_class_machine()) {
  19. + if (AllowEnhancedClassRedefinition) {
  20. + // (DCEVM) enforces serial GC
  21. + FLAG_SET_ERGO(bool, UseSerialGC, true);
  22. + } else if (os::is_server_class_machine()) {
  23. if (should_auto_select_low_pause_collector()) {
  24. FLAG_SET_ERGO(bool, UseConcMarkSweepGC, true);
  25. } else {
  26. @@ -2082,6 +2085,17 @@
  27. if (UseConcMarkSweepGC || UseParNewGC) i++;
  28. if (UseParallelGC || UseParallelOldGC) i++;
  29. if (UseG1GC) i++;
  30. +
  31. + if (AllowEnhancedClassRedefinition) {
  32. + // (DCEVM) Must use serial GC. This limitation applies because the instance size changing GC modifications
  33. + // are only built into the mark and compact algorithm.
  34. + if (!UseSerialGC && i >= 1) {
  35. + jio_fprintf(defaultStream::error_stream(),
  36. + "Must use the serial GC in the DCEVM\n");
  37. + status = false;
  38. + }
  39. + }
  40. +
  41. if (i > 1) {
  42. jio_fprintf(defaultStream::error_stream(),
  43. "Conflicting collector combinations in option list; "
  44. diff -r 7e9e421e88b5 src/share/vm/runtime/globals.hpp
  45. --- a/src/share/vm/runtime/globals.hpp Wed Apr 01 14:45:44 2015 -0700
  46. +++ b/src/share/vm/runtime/globals.hpp Mon Apr 06 10:54:01 2015 -0700
  47. @@ -1305,6 +1305,9 @@
  48. product(intx, TraceRedefineClasses, 0, \
  49. "Trace level for JVMTI RedefineClasses") \
  50. \
  51. + product(bool, AllowEnhancedClassRedefinition, true, \
  52. + "Allow enhanced class redefinition beyond swapping method bodies")\
  53. + \
  54. develop(bool, StressMethodComparator, false, \
  55. "Run the MethodComparator on all loaded methods") \
  56. \