src/share/vm/ci/ciObjectFactory.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7088955 Sdiff src/share/vm/ci

src/share/vm/ci/ciObjectFactory.hpp

Print this page




  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_VM_CI_CIOBJECTFACTORY_HPP
  26 #define SHARE_VM_CI_CIOBJECTFACTORY_HPP
  27 
  28 #include "ci/ciClassList.hpp"
  29 #include "ci/ciObject.hpp"
  30 #include "utilities/growableArray.hpp"
  31 
  32 // ciObjectFactory
  33 //
  34 // This class handles requests for the creation of new instances
  35 // of ciObject and its subclasses.  It contains a caching mechanism
  36 // which ensures that for each oop, at most one ciObject is created.
  37 // This invariant allows efficient implementation of ciObject.
  38 class ciObjectFactory : public ResourceObj {



  39 private:
  40   static volatile bool _initialized;
  41   static GrowableArray<ciObject*>* _shared_ci_objects;
  42   static ciSymbol*                 _shared_ci_symbols[];
  43   static int                       _shared_ident_limit;
  44 
  45   Arena*                    _arena;
  46   GrowableArray<ciObject*>* _ci_objects;
  47   GrowableArray<ciMethod*>* _unloaded_methods;
  48   GrowableArray<ciKlass*>* _unloaded_klasses;
  49   GrowableArray<ciInstance*>* _unloaded_instances;
  50   GrowableArray<ciReturnAddress*>* _return_addresses;
  51   GrowableArray<ciSymbol*>* _symbols;  // keep list of symbols created
  52   int                       _next_ident;
  53 
  54 public:
  55   struct NonPermObject : public ResourceObj {
  56     ciObject*      _object;
  57     NonPermObject* _next;
  58 




  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_VM_CI_CIOBJECTFACTORY_HPP
  26 #define SHARE_VM_CI_CIOBJECTFACTORY_HPP
  27 
  28 #include "ci/ciClassList.hpp"
  29 #include "ci/ciObject.hpp"
  30 #include "utilities/growableArray.hpp"
  31 
  32 // ciObjectFactory
  33 //
  34 // This class handles requests for the creation of new instances
  35 // of ciObject and its subclasses.  It contains a caching mechanism
  36 // which ensures that for each oop, at most one ciObject is created.
  37 // This invariant allows efficient implementation of ciObject.
  38 class ciObjectFactory : public ResourceObj {
  39   friend class VMStructs;
  40   friend class ciEnv;
  41 
  42 private:
  43   static volatile bool _initialized;
  44   static GrowableArray<ciObject*>* _shared_ci_objects;
  45   static ciSymbol*                 _shared_ci_symbols[];
  46   static int                       _shared_ident_limit;
  47 
  48   Arena*                    _arena;
  49   GrowableArray<ciObject*>* _ci_objects;
  50   GrowableArray<ciMethod*>* _unloaded_methods;
  51   GrowableArray<ciKlass*>* _unloaded_klasses;
  52   GrowableArray<ciInstance*>* _unloaded_instances;
  53   GrowableArray<ciReturnAddress*>* _return_addresses;
  54   GrowableArray<ciSymbol*>* _symbols;  // keep list of symbols created
  55   int                       _next_ident;
  56 
  57 public:
  58   struct NonPermObject : public ResourceObj {
  59     ciObject*      _object;
  60     NonPermObject* _next;
  61 


src/share/vm/ci/ciObjectFactory.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File