< prev index next >

src/hotspot/share/interpreter/oopMapCache.cpp

Print this page




  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 #include "precompiled.hpp"
  26 #include "interpreter/oopMapCache.hpp"
  27 #include "logging/log.hpp"
  28 #include "logging/logStream.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "memory/resourceArea.hpp"
  31 #include "oops/oop.inline.hpp"

  32 #include "runtime/handles.inline.hpp"
  33 #include "runtime/signature.hpp"
  34 
  35 class OopMapCacheEntry: private InterpreterOopMap {
  36   friend class InterpreterOopMap;
  37   friend class OopMapForCacheEntry;
  38   friend class OopMapCache;
  39   friend class VerifyClosure;
  40 
  41  private:
  42   OopMapCacheEntry* _next;
  43 
  44  protected:
  45   // Initialization
  46   void fill(const methodHandle& method, int bci);
  47   // fills the bit mask for native calls
  48   void fill_for_native(const methodHandle& method);
  49   void set_mask(CellTypeState* vars, CellTypeState* stack, int stack_top);
  50 
  51   // Deallocate bit masks and initialize fields




  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 #include "precompiled.hpp"
  26 #include "interpreter/oopMapCache.hpp"
  27 #include "logging/log.hpp"
  28 #include "logging/logStream.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "memory/resourceArea.hpp"
  31 #include "oops/oop.inline.hpp"
  32 #include "runtime/atomic.hpp"
  33 #include "runtime/handles.inline.hpp"
  34 #include "runtime/signature.hpp"
  35 
  36 class OopMapCacheEntry: private InterpreterOopMap {
  37   friend class InterpreterOopMap;
  38   friend class OopMapForCacheEntry;
  39   friend class OopMapCache;
  40   friend class VerifyClosure;
  41 
  42  private:
  43   OopMapCacheEntry* _next;
  44 
  45  protected:
  46   // Initialization
  47   void fill(const methodHandle& method, int bci);
  48   // fills the bit mask for native calls
  49   void fill_for_native(const methodHandle& method);
  50   void set_mask(CellTypeState* vars, CellTypeState* stack, int stack_top);
  51 
  52   // Deallocate bit masks and initialize fields


< prev index next >