src/share/vm/opto/runtime.hpp

Print this page


   1 /*
   2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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  *


 167   static void new_array_C(Klass* array_klass, int len, JavaThread *thread);
 168   static void new_array_nozero_C(Klass* array_klass, int len, JavaThread *thread);
 169 
 170   // Post-slow-path-allocation, pre-initializing-stores step for
 171   // implementing ReduceInitialCardMarks
 172   static void new_store_pre_barrier(JavaThread* thread);
 173 
 174   // Allocate storage for a multi-dimensional arrays
 175   // Note: needs to be fixed for arbitrary number of dimensions
 176   static void multianewarray2_C(Klass* klass, int len1, int len2, JavaThread *thread);
 177   static void multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread *thread);
 178   static void multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread *thread);
 179   static void multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread *thread);
 180   static void multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread *thread);
 181   static void g1_wb_pre_C(oopDesc* orig, JavaThread* thread);
 182   static void g1_wb_post_C(void* card_addr, JavaThread* thread);
 183 
 184 public:
 185   // Slow-path Locking and Unlocking
 186   static void complete_monitor_locking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);
 187   static void complete_monitor_unlocking_C(oopDesc* obj, BasicLock* lock);
 188 
 189 private:
 190 
 191   // Implicit exception support
 192   static void throw_null_exception_C(JavaThread* thread);
 193 
 194   // Exception handling
 195   static address handle_exception_C       (JavaThread* thread);
 196   static address handle_exception_C_helper(JavaThread* thread, nmethod*& nm);
 197   static address rethrow_C                (oopDesc* exception, JavaThread *thread, address return_pc );
 198   static void deoptimize_caller_frame     (JavaThread *thread);
 199   static void deoptimize_caller_frame     (JavaThread *thread, bool doit);
 200   static bool is_deoptimized_caller_frame (JavaThread *thread);
 201 
 202   // CodeBlob support
 203   // ===================================================================
 204 
 205   static ExceptionBlob*       _exception_blob;
 206   static void generate_exception_blob();
 207 


   1 /*
   2  * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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  *


 167   static void new_array_C(Klass* array_klass, int len, JavaThread *thread);
 168   static void new_array_nozero_C(Klass* array_klass, int len, JavaThread *thread);
 169 
 170   // Post-slow-path-allocation, pre-initializing-stores step for
 171   // implementing ReduceInitialCardMarks
 172   static void new_store_pre_barrier(JavaThread* thread);
 173 
 174   // Allocate storage for a multi-dimensional arrays
 175   // Note: needs to be fixed for arbitrary number of dimensions
 176   static void multianewarray2_C(Klass* klass, int len1, int len2, JavaThread *thread);
 177   static void multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread *thread);
 178   static void multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread *thread);
 179   static void multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread *thread);
 180   static void multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread *thread);
 181   static void g1_wb_pre_C(oopDesc* orig, JavaThread* thread);
 182   static void g1_wb_post_C(void* card_addr, JavaThread* thread);
 183 
 184 public:
 185   // Slow-path Locking and Unlocking
 186   static void complete_monitor_locking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);
 187   static void complete_monitor_unlocking_C(oopDesc* obj, BasicLock* lock, JavaThread* thread);
 188 
 189 private:
 190 
 191   // Implicit exception support
 192   static void throw_null_exception_C(JavaThread* thread);
 193 
 194   // Exception handling
 195   static address handle_exception_C       (JavaThread* thread);
 196   static address handle_exception_C_helper(JavaThread* thread, nmethod*& nm);
 197   static address rethrow_C                (oopDesc* exception, JavaThread *thread, address return_pc );
 198   static void deoptimize_caller_frame     (JavaThread *thread);
 199   static void deoptimize_caller_frame     (JavaThread *thread, bool doit);
 200   static bool is_deoptimized_caller_frame (JavaThread *thread);
 201 
 202   // CodeBlob support
 203   // ===================================================================
 204 
 205   static ExceptionBlob*       _exception_blob;
 206   static void generate_exception_blob();
 207