-
Enhancement
-
Resolution: Fixed
-
P4
-
23
-
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.
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.