< prev index next >

src/hotspot/share/oops/access.inline.hpp

Print this page
rev 53158 : 8215724: Epsilon: ArrayStoreExceptionTest.java fails; missing arraycopy check
Reviewed-by: XXX


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_OOPS_ACCESS_INLINE_HPP
  26 #define SHARE_OOPS_ACCESS_INLINE_HPP
  27 

  28 #include "gc/shared/barrierSetConfig.inline.hpp"
  29 #include "oops/access.hpp"
  30 #include "oops/accessBackend.inline.hpp"
  31 
  32 // This file outlines the last 2 steps of the template pipeline of accesses going through
  33 // the Access API.
  34 // * Step 5.a: Barrier resolution. This step is invoked the first time a runtime-dispatch
  35 //             happens for an access. The appropriate BarrierSet::AccessBarrier accessor
  36 //             is resolved, then the function pointer is updated to that accessor for
  37 //             future invocations.
  38 // * Step 5.b: Post-runtime dispatch. This step now casts previously unknown types such
  39 //             as the address type of an oop on the heap (is it oop* or narrowOop*) to
  40 //             the appropriate type. It also splits sufficiently orthogonal accesses into
  41 //             different functions, such as whether the access involves oops or primitives
  42 //             and whether the access is performed on the heap or outside. Then the
  43 //             appropriate BarrierSet::AccessBarrier is called to perform the access.
  44 
  45 namespace AccessInternal {
  46   // Step 5.b: Post-runtime dispatch.
  47   // This class is the last step before calling the BarrierSet::AccessBarrier.




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_OOPS_ACCESS_INLINE_HPP
  26 #define SHARE_OOPS_ACCESS_INLINE_HPP
  27 
  28 #include "gc/shared/barrierSet.inline.hpp"
  29 #include "gc/shared/barrierSetConfig.inline.hpp"
  30 #include "oops/access.hpp"
  31 #include "oops/accessBackend.inline.hpp"
  32 
  33 // This file outlines the last 2 steps of the template pipeline of accesses going through
  34 // the Access API.
  35 // * Step 5.a: Barrier resolution. This step is invoked the first time a runtime-dispatch
  36 //             happens for an access. The appropriate BarrierSet::AccessBarrier accessor
  37 //             is resolved, then the function pointer is updated to that accessor for
  38 //             future invocations.
  39 // * Step 5.b: Post-runtime dispatch. This step now casts previously unknown types such
  40 //             as the address type of an oop on the heap (is it oop* or narrowOop*) to
  41 //             the appropriate type. It also splits sufficiently orthogonal accesses into
  42 //             different functions, such as whether the access involves oops or primitives
  43 //             and whether the access is performed on the heap or outside. Then the
  44 //             appropriate BarrierSet::AccessBarrier is called to perform the access.
  45 
  46 namespace AccessInternal {
  47   // Step 5.b: Post-runtime dispatch.
  48   // This class is the last step before calling the BarrierSet::AccessBarrier.


< prev index next >