logo

overlay

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

icedtea7-hotspot-pointer-comparison.patch (1600B)


  1. --- openjdk.orig/hotspot/src/share/vm/opto/lcm.cpp 2021-12-06 12:25:52.743843656 +0000
  2. +++ openjdk/hotspot/src/share/vm/opto/lcm.cpp 2021-12-06 12:26:05.814241520 +0000
  3. @@ -60,7 +60,7 @@
  4. // Check whether val is not-null-decoded compressed oop,
  5. // i.e. will grab into the base of the heap if it represents NULL.
  6. static bool accesses_heap_base_zone(Node *val) {
  7. - if (UseCompressedOops && Universe::narrow_oop_base() > 0) {
  8. + if (UseCompressedOops && (Universe::narrow_oop_base() != 0)) {
  9. if (val && val->is_Mach()) {
  10. if (val->as_Mach()->ideal_Opcode() == Op_DecodeN) {
  11. // This assumes all Decodes with TypePtr::NotNull are matched to nodes that
  12. --- openjdk.orig/hotspot/src/share/vm/runtime/virtualspace.cpp 2021-12-06 13:08:11.976366383 +0000
  13. +++ openjdk/hotspot/src/share/vm/runtime/virtualspace.cpp 2021-12-06 13:08:34.377048681 +0000
  14. @@ -527,7 +527,7 @@
  15. (UseCompressedOops && (Universe::narrow_oop_base() != NULL) &&
  16. Universe::narrow_oop_use_implicit_null_checks()) ?
  17. lcm(os::vm_page_size(), alignment) : 0) {
  18. - if (base() > 0) {
  19. + if (base() != 0) {
  20. MemTracker::record_virtual_memory_type((address)base(), mtJavaHeap);
  21. }
  22. @@ -546,7 +546,7 @@
  23. (UseCompressedOops && (Universe::narrow_oop_base() != NULL) &&
  24. Universe::narrow_oop_use_implicit_null_checks()) ?
  25. lcm(os::vm_page_size(), prefix_align) : 0) {
  26. - if (base() > 0) {
  27. + if (base() != 0) {
  28. MemTracker::record_virtual_memory_type((address)base(), mtJavaHeap);
  29. }