< prev index next >

src/share/vm/gc/g1/g1CollectedHeap.hpp

Print this page
rev 9282 : dihop-changes


1350   // pre-value that needs to be remembered; for the remembered-set
1351   // update logging post-barrier, we don't maintain remembered set
1352   // information for young gen objects.
1353   virtual inline bool can_elide_initializing_store_barrier(oop new_obj);
1354 
1355   // Returns "true" iff the given word_size is "very large".
1356   static bool is_humongous(size_t word_size) {
1357     // Note this has to be strictly greater-than as the TLABs
1358     // are capped at the humongous threshold and we want to
1359     // ensure that we don't try to allocate a TLAB as
1360     // humongous and that we don't allocate a humongous
1361     // object in a TLAB.
1362     return word_size > _humongous_object_threshold_in_words;
1363   }
1364 
1365   // Returns the humongous threshold for a specific region size
1366   static size_t humongous_threshold_for(size_t region_size) {
1367     return (region_size / 2);
1368   }
1369 




1370   // Update mod union table with the set of dirty cards.
1371   void updateModUnion();
1372 
1373   // Set the mod union bits corresponding to the given memRegion.  Note
1374   // that this is always a safe operation, since it doesn't clear any
1375   // bits.
1376   void markModUnionRange(MemRegion mr);
1377 
1378   // Print the maximum heap capacity.
1379   virtual size_t max_capacity() const;
1380 
1381   virtual jlong millis_since_last_gc();
1382 
1383 
1384   // Convenience function to be used in situations where the heap type can be
1385   // asserted to be this type.
1386   static G1CollectedHeap* heap();
1387 
1388   void set_region_short_lived_locked(HeapRegion* hr);
1389   // add appropriate methods for any other surv rate groups




1350   // pre-value that needs to be remembered; for the remembered-set
1351   // update logging post-barrier, we don't maintain remembered set
1352   // information for young gen objects.
1353   virtual inline bool can_elide_initializing_store_barrier(oop new_obj);
1354 
1355   // Returns "true" iff the given word_size is "very large".
1356   static bool is_humongous(size_t word_size) {
1357     // Note this has to be strictly greater-than as the TLABs
1358     // are capped at the humongous threshold and we want to
1359     // ensure that we don't try to allocate a TLAB as
1360     // humongous and that we don't allocate a humongous
1361     // object in a TLAB.
1362     return word_size > _humongous_object_threshold_in_words;
1363   }
1364 
1365   // Returns the humongous threshold for a specific region size
1366   static size_t humongous_threshold_for(size_t region_size) {
1367     return (region_size / 2);
1368   }
1369 
1370   // Returns the number of regions the humongous object of the given word size
1371   // covers.
1372   static size_t humongous_obj_size_in_regions(size_t word_size);
1373 
1374   // Update mod union table with the set of dirty cards.
1375   void updateModUnion();
1376 
1377   // Set the mod union bits corresponding to the given memRegion.  Note
1378   // that this is always a safe operation, since it doesn't clear any
1379   // bits.
1380   void markModUnionRange(MemRegion mr);
1381 
1382   // Print the maximum heap capacity.
1383   virtual size_t max_capacity() const;
1384 
1385   virtual jlong millis_since_last_gc();
1386 
1387 
1388   // Convenience function to be used in situations where the heap type can be
1389   // asserted to be this type.
1390   static G1CollectedHeap* heap();
1391 
1392   void set_region_short_lived_locked(HeapRegion* hr);
1393   // add appropriate methods for any other surv rate groups


< prev index next >