Print this page


Split Close
Expand all
Collapse all
          --- old/src/os/solaris/vm/os_solaris.cpp
          +++ new/src/os/solaris/vm/os_solaris.cpp
↓ open down ↓ 2813 lines elided ↑ open up ↑
2814 2814        }
2815 2815        // Since this is a hint, ignore any failures.
2816 2816        (void)Solaris::set_mpss_range(addr, bytes, page_size);
2817 2817      }
2818 2818      return true;
2819 2819    }
2820 2820    return false;
2821 2821  }
2822 2822  
2823 2823  // Uncommit the pages in a specified region.
2824      -void os::free_memory(char* addr, size_t bytes) {
     2824 +void os::free_memory(char* addr, size_t bytes, size_t alignment_hint) {
2825 2825    if (madvise(addr, bytes, MADV_FREE) < 0) {
2826 2826      debug_only(warning("MADV_FREE failed."));
2827 2827      return;
2828 2828    }
2829 2829  }
2830 2830  
2831 2831  bool os::create_stack_guard_pages(char* addr, size_t size) {
2832 2832    return os::commit_memory(addr, size);
2833 2833  }
2834 2834  
↓ open down ↓ 3638 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX