src/java.base/share/classes/jdk/internal/misc/Unsafe.java
changeset 53924 09cba396916f
parent 52427 3c6aa484536c
child 54439 d9b46b7de028
equal deleted inserted replaced
53923:c431ab7f9e85 53924:09cba396916f
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  3112      *
  3112      *
  3113      * @param o object/array to update the field/element in
  3113      * @param o object/array to update the field/element in
  3114      * @param offset field/element offset
  3114      * @param offset field/element offset
  3115      * @param mask the mask value
  3115      * @param mask the mask value
  3116      * @return the previous value
  3116      * @return the previous value
  3117      * @since 1.9
  3117      * @since 9
  3118      */
  3118      */
  3119     @ForceInline
  3119     @ForceInline
  3120     public final int getAndBitwiseAndInt(Object o, long offset, int mask) {
  3120     public final int getAndBitwiseAndInt(Object o, long offset, int mask) {
  3121         int current;
  3121         int current;
  3122         do {
  3122         do {
  3338      * error support.
  3338      * error support.
  3339      * @since 1.8
  3339      * @since 1.8
  3340      */
  3340      */
  3341     private static void throwIllegalAccessError() {
  3341     private static void throwIllegalAccessError() {
  3342         throw new IllegalAccessError();
  3342         throw new IllegalAccessError();
       
  3343     }
       
  3344 
       
  3345     /**
       
  3346      * Throws NoSuchMethodError; for use by the VM for redefinition support.
       
  3347      * @since 13
       
  3348      */
       
  3349     private static void throwNoSuchMethodError() {
       
  3350         throw new NoSuchMethodError();
  3343     }
  3351     }
  3344 
  3352 
  3345     /**
  3353     /**
  3346      * @return Returns true if the native byte ordering of this
  3354      * @return Returns true if the native byte ordering of this
  3347      * platform is big-endian, false if it is little-endian.
  3355      * platform is big-endian, false if it is little-endian.