From 16c1533081b98f99e6b562c141a4e520f359cf98 Mon Sep 17 00:00:00 2001 From: liach Date: Mon, 25 Nov 2024 15:36:32 -0600 Subject: [PATCH] Typos --- src/java.base/share/classes/jdk/internal/misc/Unsafe.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java.base/share/classes/jdk/internal/misc/Unsafe.java b/src/java.base/share/classes/jdk/internal/misc/Unsafe.java index 0c9f7c411ffca..983a0b84306d1 100644 --- a/src/java.base/share/classes/jdk/internal/misc/Unsafe.java +++ b/src/java.base/share/classes/jdk/internal/misc/Unsafe.java @@ -1044,7 +1044,7 @@ private void checkWritebackEnabled() { * {@link #staticFieldOffset}, {@link #objectFieldOffset}, * or {@link #arrayBaseOffset}. *

- * The static type is @code long} to emphasize that long arithmetics should + * The static type is @code long} to emphasize that long arithmetic should * always be used for offset calculations to avoid overflows. */ public static final long INVALID_FIELD_OFFSET = -1; @@ -1177,7 +1177,7 @@ public void ensureClassInitialized(Class c) { * given class. *

* The return value is in the range of a {@code int}. The return type is - * {@code long} to emphasize that long arithmetics should always be used + * {@code long} to emphasize that long arithmetic should always be used * for offset calculations to avoid overflows. * * @see #getInt(Object, long) @@ -1236,7 +1236,7 @@ public long arrayBaseOffset(Class arrayClass) { * as zero. *

* The computation of the actual memory offset should always use {@code - * long} arithmetics to avoid overflows. + * long} arithmetic to avoid overflows. * * @see #arrayBaseOffset * @see #getInt(Object, long) @@ -3850,7 +3850,7 @@ private void putShortParts(Object o, long offset, byte i0, byte i1) { private native Object staticFieldBase0(Field f); private native boolean shouldBeInitialized0(Class c); private native void ensureClassInitialized0(Class c); - private native int arrayBaseOffset0(Class arrayClass); // public version returns long to promote correct arithmetics + private native int arrayBaseOffset0(Class arrayClass); // public version returns long to promote correct arithmetic private native int arrayIndexScale0(Class arrayClass); private native int getLoadAverage0(double[] loadavg, int nelems);