File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
test/hotspot/jtreg/compiler/jvmci/common Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2015, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2015, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2626import jdk .vm .ci .code .Architecture ;
2727import jdk .vm .ci .code .CodeCacheProvider ;
2828import jdk .vm .ci .code .Register ;
29- import jdk .vm .ci .code .RegisterArray ;
3029import jdk .vm .ci .code .StackSlot ;
3130import jdk .vm .ci .code .site .DataPatch ;
3231import jdk .vm .ci .code .site .Site ;
@@ -118,8 +117,7 @@ protected InstalledCode installEmptyCode(Site[] sites,
118117
119118 protected Register getRegister (PlatformKind kind , int index ) {
120119 int idx = index ;
121- RegisterArray allRegs = arch .getAvailableValueRegisters ();
122- for (Register reg : allRegs ) {
120+ for (Register reg : arch .getAvailableValueRegisters ()) {
123121 if (arch .canStoreValue (reg .getRegisterCategory (), kind )) {
124122 if (idx -- == 0 ) {
125123 return reg ;
You can’t perform that action at this time.
0 commit comments