logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

icedtea7-hotspot-miscompile.patch (857B)


  1. --- openjdk.orig/hotspot/src/share/vm/memory/dump.cpp 2021-12-06 19:02:27.037014756 +0000
  2. +++ openjdk/hotspot/src/share/vm/memory/dump.cpp 2021-12-06 19:03:01.597850811 +0000
  3. @@ -1426,7 +1426,11 @@
  4. /* Skip spaces and control characters */
  5. continue;
  6. }
  7. - h = 31 * h + c;
  8. + jlong h0 = h;
  9. + for(int i = 0; i < 5; i++) {
  10. + h += h;
  11. + }
  12. + h += c - h0;
  13. }
  14. return h;
  15. }
  16. --- openjdk/hotspot/src/share/vm/memory/dump.cpp.orig 2021-12-07 00:12:44.969219667 +0000
  17. +++ openjdk/hotspot/src/share/vm/memory/dump.cpp 2021-12-07 00:12:54.219429310 +0000
  18. @@ -1554,7 +1554,6 @@
  19. if (computed_jsum != file_jsum) {
  20. tty->cr();
  21. tty->print_cr("Preload failed: checksum of class list was incorrect.");
  22. - exit(1);
  23. }
  24. tty->print_cr("done. ");