hotspot/src/share/vm/gc_interface/collectedHeap.hpp
changeset 11396 917d8673b5ef
parent 11247 d6faa02b3802
child 11636 3c07b54482a5
equal deleted inserted replaced
11395:33260c27554b 11396:917d8673b5ef
    67 
    67 
    68  protected:
    68  protected:
    69   MemRegion _reserved;
    69   MemRegion _reserved;
    70   BarrierSet* _barrier_set;
    70   BarrierSet* _barrier_set;
    71   bool _is_gc_active;
    71   bool _is_gc_active;
    72   int _n_par_threads;
    72   uint _n_par_threads;
    73 
    73 
    74   unsigned int _total_collections;          // ... started
    74   unsigned int _total_collections;          // ... started
    75   unsigned int _total_full_collections;     // ... started
    75   unsigned int _total_full_collections;     // ... started
    76   NOT_PRODUCT(volatile size_t _promotion_failure_alot_count;)
    76   NOT_PRODUCT(volatile size_t _promotion_failure_alot_count;)
    77   NOT_PRODUCT(volatile size_t _promotion_failure_alot_gc_number;)
    77   NOT_PRODUCT(volatile size_t _promotion_failure_alot_gc_number;)
   307     _gc_cause = v;
   307     _gc_cause = v;
   308   }
   308   }
   309   GCCause::Cause gc_cause() { return _gc_cause; }
   309   GCCause::Cause gc_cause() { return _gc_cause; }
   310 
   310 
   311   // Number of threads currently working on GC tasks.
   311   // Number of threads currently working on GC tasks.
   312   int n_par_threads() { return _n_par_threads; }
   312   uint n_par_threads() { return _n_par_threads; }
   313 
   313 
   314   // May be overridden to set additional parallelism.
   314   // May be overridden to set additional parallelism.
   315   virtual void set_par_threads(int t) { _n_par_threads = t; };
   315   virtual void set_par_threads(uint t) { _n_par_threads = t; };
   316 
   316 
   317   // Preload classes into the shared portion of the heap, and then dump
   317   // Preload classes into the shared portion of the heap, and then dump
   318   // that data to a file so that it can be loaded directly by another
   318   // that data to a file so that it can be loaded directly by another
   319   // VM (then terminate).
   319   // VM (then terminate).
   320   virtual void preload_and_dump(TRAPS) { ShouldNotReachHere(); }
   320   virtual void preload_and_dump(TRAPS) { ShouldNotReachHere(); }