Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8337788

RISC-V: Cleanup code in MacroAssembler::reserved_stack_check

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • b10
    • riscv
    • generic

      In the MacroAssembler::reserved_stack_check() function:
      ```
          RuntimeAddress target(StubRoutines::throw_delayed_StackOverflowError_entry());
          relocate(target.rspec(), [&] {
            int32_t offset;
            movptr(t0, target.target(), offset);
            jr(t0, offset);
          });
      ```
      can be simplified to:
      ```
        la(t0, RuntimeAddress(StubRoutines::throw_delayed_StackOverflowError_entry()));
        jr(t0);
      ```

            gcao Gui Cao
            gcao Gui Cao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: