src/share/vm/oops/cpCache.cpp

Print this page
rev 6676 : 8044775: Improve usage of umbrella header atomic.inline.hpp.
Reviewed-by: stefank, kvn


  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 "gc_implementation/shared/markSweep.inline.hpp"
  27 #include "interpreter/interpreter.hpp"
  28 #include "interpreter/rewriter.hpp"
  29 #include "memory/universe.inline.hpp"
  30 #include "oops/cpCache.hpp"
  31 #include "oops/objArrayOop.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "prims/jvmtiRedefineClassesTrace.hpp"
  34 #include "prims/methodHandles.hpp"

  35 #include "runtime/handles.inline.hpp"
  36 #include "runtime/orderAccess.inline.hpp"
  37 #include "utilities/macros.hpp"
  38 #if INCLUDE_ALL_GCS
  39 # include "gc_implementation/parallelScavenge/psPromotionManager.hpp"
  40 #endif // INCLUDE_ALL_GCS
  41 
  42 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  43 
  44 // Implementation of ConstantPoolCacheEntry
  45 
  46 void ConstantPoolCacheEntry::initialize_entry(int index) {
  47   assert(0 < index && index < 0x10000, "sanity check");
  48   _indices = index;
  49   _f1 = NULL;
  50   _f2 = _flags = 0;
  51   assert(constant_pool_index() == index, "");
  52 }
  53 
  54 int ConstantPoolCacheEntry::make_flags(TosState state,




  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 "gc_implementation/shared/markSweep.inline.hpp"
  27 #include "interpreter/interpreter.hpp"
  28 #include "interpreter/rewriter.hpp"
  29 #include "memory/universe.inline.hpp"
  30 #include "oops/cpCache.hpp"
  31 #include "oops/objArrayOop.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "prims/jvmtiRedefineClassesTrace.hpp"
  34 #include "prims/methodHandles.hpp"
  35 #include "runtime/atomic.inline.hpp"
  36 #include "runtime/handles.inline.hpp"
  37 #include "runtime/orderAccess.inline.hpp"
  38 #include "utilities/macros.hpp"
  39 #if INCLUDE_ALL_GCS
  40 # include "gc_implementation/parallelScavenge/psPromotionManager.hpp"
  41 #endif // INCLUDE_ALL_GCS
  42 
  43 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  44 
  45 // Implementation of ConstantPoolCacheEntry
  46 
  47 void ConstantPoolCacheEntry::initialize_entry(int index) {
  48   assert(0 < index && index < 0x10000, "sanity check");
  49   _indices = index;
  50   _f1 = NULL;
  51   _f2 = _flags = 0;
  52   assert(constant_pool_index() == index, "");
  53 }
  54 
  55 int ConstantPoolCacheEntry::make_flags(TosState state,