Skip to content

Commit

Permalink
valhalla enable java/lang/Access methods
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Feng <[email protected]>
  • Loading branch information
JasonFengJ9 committed Apr 6, 2023
1 parent c4afb5c commit 071c73f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jcl/src/java.base/share/classes/java/lang/Access.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public String newStringUTF8NoRepl(byte[] bytes, int offset, int length) {
/*[IF JAVA_SPEC_VERSION < 17]*/
return StringCoding.newStringUTF8NoRepl(bytes, offset, length);
/*[ELSE] JAVA_SPEC_VERSION < 17 */
/*[IF (JAVA_SPEC_VERSION < 21) | INLINE-TYPES]*/
/*[IF JAVA_SPEC_VERSION < 21]*/
return String.newStringUTF8NoRepl(bytes, offset, length);
/*[ELSE] JAVA_SPEC_VERSION < 21 */
return String.newStringUTF8NoRepl(bytes, offset, length, true);
Expand Down Expand Up @@ -696,7 +696,7 @@ public <T> void setCarrierThreadLocal(CarrierThreadLocal<T> carrierThreadlocal,
}
/*[ENDIF] JAVA_SPEC_VERSION >= 19 */

/*[IF (JAVA_SPEC_VERSION >= 21) & !INLINE-TYPES]*/
/*[IF JAVA_SPEC_VERSION >= 21]*/
@Override
public String getLoaderNameID(ClassLoader loader) {
StringBuilder buffer = new StringBuilder();
Expand All @@ -714,7 +714,7 @@ public String getLoaderNameID(ClassLoader loader) {

return buffer.toString();
}
/*[ENDIF] (JAVA_SPEC_VERSION >= 21) & !INLINE-TYPES */
/*[ENDIF] JAVA_SPEC_VERSION >= 21 */

/*[IF INLINE-TYPES]*/
@Override
Expand Down

0 comments on commit 071c73f

Please sign in to comment.