Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
liach committed Nov 26, 2024
1 parent b62e3d2 commit 16c1533
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/java.base/share/classes/jdk/internal/misc/Unsafe.java
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ private void checkWritebackEnabled() {
* {@link #staticFieldOffset}, {@link #objectFieldOffset},
* or {@link #arrayBaseOffset}.
* <p>
* 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;
Expand Down Expand Up @@ -1177,7 +1177,7 @@ public void ensureClassInitialized(Class<?> c) {
* given class.
* <p>
* 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)
Expand Down Expand Up @@ -1236,7 +1236,7 @@ public long arrayBaseOffset(Class<?> arrayClass) {
* as zero.
* <p>
* 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)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 16c1533

Please sign in to comment.