src/hotspot/share/oops/compressedOops.hpp
author ccheung
Wed, 02 Oct 2019 16:55:08 -0700
changeset 58447 319173c62caa
parent 58015 dd84de796f2c
permissions -rw-r--r--
8231606: _method_ordering is not set during CDS dynamic dump time Summary: Add the missing DynamicDumpSharedSpaces check in sort_methods(); replace the (DumpSharedSpaces || DynamicDumpSharedSpaces) with the Arguments::is_dumping_archive() function call. Reviewed-by: iklam, coleenp, jiangli
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     1
/*
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     4
 *
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     7
 * published by the Free Software Foundation.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     8
 *
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    13
 * accompanied this code).
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    14
 *
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    18
 *
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    21
 * questions.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    22
 *
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    23
 */
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    24
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    25
#ifndef SHARE_OOPS_COMPRESSEDOOPS_HPP
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    26
#define SHARE_OOPS_COMPRESSEDOOPS_HPP
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    27
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    28
#include "memory/allocation.hpp"
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    29
#include "memory/memRegion.hpp"
54825
1b03400e5a8f 8223637: Fix build breakage after 8223136
stefank
parents: 54780
diff changeset
    30
#include "oops/oopsHierarchy.hpp"
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    31
#include "utilities/globalDefinitions.hpp"
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    32
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    33
class outputStream;
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    34
class ReservedHeapSpace;
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    35
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    36
struct NarrowPtrStruct {
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    37
  // Base address for oop-within-java-object materialization.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    38
  // NULL if using wide oops or zero based narrow oops.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    39
  address _base;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    40
  // Number of shift bits for encoding/decoding narrow ptrs.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    41
  // 0 if using wide ptrs or zero based unscaled narrow ptrs,
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    42
  // LogMinObjAlignmentInBytes/LogKlassAlignmentInBytes otherwise.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    43
  int     _shift;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    44
  // Generate code with implicit null checks for narrow ptrs.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    45
  bool    _use_implicit_null_checks;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    46
};
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    47
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    48
class CompressedOops : public AllStatic {
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    49
  friend class VMStructs;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    50
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    51
  // For UseCompressedOops.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    52
  static NarrowPtrStruct _narrow_oop;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    53
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    54
  // The address range of the heap
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    55
  static MemRegion _heap_address_range;
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    56
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    57
public:
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    58
  // For UseCompressedOops
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    59
  // Narrow Oop encoding mode:
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    60
  // 0 - Use 32-bits oops without encoding when
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    61
  //     NarrowOopHeapBaseMin + heap_size < 4Gb
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    62
  // 1 - Use zero based compressed oops with encoding when
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    63
  //     NarrowOopHeapBaseMin + heap_size < 32Gb
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    64
  // 2 - Use compressed oops with disjoint heap base if
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    65
  //     base is 32G-aligned and base > 0. This allows certain
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    66
  //     optimizations in encoding/decoding.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    67
  //     Disjoint: Bits used in base are disjoint from bits used
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    68
  //     for oops ==> oop = (cOop << 3) | base.  One can disjoint
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    69
  //     the bits of an oop into base and compressed oop.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    70
  // 3 - Use compressed oops with heap base + encoding.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    71
  enum Mode {
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    72
    UnscaledNarrowOop  = 0,
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    73
    ZeroBasedNarrowOop = 1,
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    74
    DisjointBaseNarrowOop = 2,
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    75
    HeapBasedNarrowOop = 3,
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    76
    AnyNarrowOopMode = 4
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    77
  };
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    78
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    79
  static void initialize(const ReservedHeapSpace& heap_space);
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    80
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    81
  static void set_base(address base);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    82
  static void set_shift(int shift);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    83
  static void set_use_implicit_null_checks(bool use);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    84
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    85
  static address  base()                     { return _narrow_oop._base; }
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    86
  static address  begin()                    { return (address)_heap_address_range.start(); }
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    87
  static address  end()                      { return (address)_heap_address_range.end(); }
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    88
  static bool     is_base(void* addr)        { return (base() == (address)addr); }
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    89
  static int      shift()                    { return _narrow_oop._shift; }
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    90
  static bool     use_implicit_null_checks() { return _narrow_oop._use_implicit_null_checks; }
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    91
58015
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    92
  static address* ptrs_base_addr()           { return &_narrow_oop._base; }
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    93
  static address  ptrs_base()                { return _narrow_oop._base; }
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    94
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    95
  static bool is_in(void* addr);
dd84de796f2c 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
eosterlund
parents: 54825
diff changeset
    96
  static bool is_in(MemRegion mr);
54780
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    97
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    98
  static Mode mode();
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
    99
  static const char* mode_to_string(Mode mode);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   100
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   101
  // Test whether bits of addr and possible offsets into the heap overlap.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   102
  static bool     is_disjoint_heap_base_address(address addr);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   103
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   104
  // Check for disjoint base compressed oops.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   105
  static bool     base_disjoint();
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   106
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   107
  // Check for real heapbased compressed oops.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   108
  // We must subtract the base as the bits overlap.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   109
  // If we negate above function, we also get unscaled and zerobased.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   110
  static bool     base_overlaps();
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   111
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   112
  static void     print_mode(outputStream* st);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   113
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   114
  static bool is_null(oop v)       { return v == NULL; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   115
  static bool is_null(narrowOop v) { return v == 0; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   116
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   117
  static inline oop decode_raw(narrowOop v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   118
  static inline oop decode_not_null(narrowOop v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   119
  static inline oop decode(narrowOop v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   120
  static inline narrowOop encode_not_null(oop v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   121
  static inline narrowOop encode(oop v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   122
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   123
  // No conversions needed for these overloads
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   124
  static oop decode_not_null(oop v)             { return v; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   125
  static oop decode(oop v)                      { return v; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   126
  static narrowOop encode_not_null(narrowOop v) { return v; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   127
  static narrowOop encode(narrowOop v)          { return v; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   128
};
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   129
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   130
// For UseCompressedClassPointers.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   131
class CompressedKlassPointers : public AllStatic {
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   132
  friend class VMStructs;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   133
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   134
  static NarrowPtrStruct _narrow_klass;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   135
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   136
  // CompressedClassSpaceSize set to 1GB, but appear 3GB away from _narrow_ptrs_base during CDS dump.
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   137
  static uint64_t _narrow_klass_range;
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   138
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   139
public:
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   140
  static void set_base(address base);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   141
  static void set_shift(int shift);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   142
  static void set_range(uint64_t range);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   143
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   144
  static address  base()               { return  _narrow_klass._base; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   145
  static uint64_t range()              { return  _narrow_klass_range; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   146
  static int      shift()              { return  _narrow_klass._shift; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   147
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   148
  static bool is_null(Klass* v)      { return v == NULL; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   149
  static bool is_null(narrowKlass v) { return v == 0; }
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   150
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   151
  static inline Klass* decode_raw(narrowKlass v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   152
  static inline Klass* decode_not_null(narrowKlass v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   153
  static inline Klass* decode(narrowKlass v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   154
  static inline narrowKlass encode_not_null(Klass* v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   155
  static inline narrowKlass encode(Klass* v);
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   156
};
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   157
f8d182aedc92 8223136: Move compressed oops functions to CompressedOops class
stefank
parents:
diff changeset
   158
#endif // SHARE_OOPS_COMPRESSEDOOPS_HPP