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

[PPC64] saving and restoring CR is not needed at most places

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 23
    • hotspot
    • b02
    • ppc

      The current PPC64 code uses save_LR_CR and restore_LR_CR very often. In most cases, only LR needs to be saved and restored.
      The CR typically only needs that when calling from native to Java because the interpreter and JIT compilers don't use the concept of nonvolatile condition registers.

      Functions which call from native are "generate_call_stub" (some cases) and "UpcallLinker::make_upcall_stub". In addition, debug routines like "verify_oop*" should probably better preserve the CR, too.
      Other usages could be changed to save_LR and restore_LR only.

            varadam Varada M
            mdoerr Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: