選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

arguments-java8u31.patch 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # HG changeset patch
  2. # Parent 94dee6e9176e68ea1122af0dc98b6a5c152ea1e5
  3. diff -r 94dee6e9176e src/share/vm/runtime/arguments.cpp
  4. --- a/src/share/vm/runtime/arguments.cpp Tue Mar 31 17:58:49 2015 -0700
  5. +++ b/src/share/vm/runtime/arguments.cpp Tue Mar 31 18:01:20 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,6 +1561,10 @@
  16. }
  17. void Arguments::select_gc_ergonomically() {
  18. + if (AllowEnhancedClassRedefinition) {
  19. + // (DCEVM) enforces serial GC
  20. + FLAG_SET_ERGO(bool, UseSerialGC, true);
  21. + }
  22. if (os::is_server_class_machine()) {
  23. if (should_auto_select_low_pause_collector()) {
  24. FLAG_SET_ERGO(bool, UseConcMarkSweepGC, true);
  25. @@ -2082,6 +2086,17 @@
  26. if (UseConcMarkSweepGC || UseParNewGC) i++;
  27. if (UseParallelGC || UseParallelOldGC) i++;
  28. if (UseG1GC) i++;
  29. +
  30. + if (AllowEnhancedClassRedefinition) {
  31. + // (DCEVM) Must use serial GC. This limitation applies because the instance size changing GC modifications
  32. + // are only built into the mark and compact algorithm.
  33. + if (!UseSerialGC && i >= 1) {
  34. + jio_fprintf(defaultStream::error_stream(),
  35. + "Must use the serial GC in the DCEVM\n");
  36. + status = false;
  37. + }
  38. + }
  39. +
  40. if (i > 1) {
  41. jio_fprintf(defaultStream::error_stream(),
  42. "Conflicting collector combinations in option list; "
  43. diff -r 94dee6e9176e src/share/vm/runtime/globals.hpp
  44. --- a/src/share/vm/runtime/globals.hpp Tue Mar 31 17:58:49 2015 -0700
  45. +++ b/src/share/vm/runtime/globals.hpp Tue Mar 31 18:01:20 2015 -0700
  46. @@ -1305,6 +1305,9 @@
  47. product(intx, TraceRedefineClasses, 0, \
  48. "Trace level for JVMTI RedefineClasses") \
  49. \
  50. + product(bool, AllowEnhancedClassRedefinition, true, \
  51. + "Allow enhanced class redefinition beyond swapping method bodies")\
  52. + \
  53. develop(bool, StressMethodComparator, false, \
  54. "Run the MethodComparator on all loaded methods") \
  55. \