< prev index next >

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

Print this page
rev 9402 : dihop-changes
rev 9404 : [mq]: erik-jmasa-review


1336   // update logging post-barrier, we don't maintain remembered set
1337   // information for young gen objects.
1338   virtual inline bool can_elide_initializing_store_barrier(oop new_obj);
1339 
1340   // Returns "true" iff the given word_size is "very large".
1341   static bool is_humongous(size_t word_size) {
1342     // Note this has to be strictly greater-than as the TLABs
1343     // are capped at the humongous threshold and we want to
1344     // ensure that we don't try to allocate a TLAB as
1345     // humongous and that we don't allocate a humongous
1346     // object in a TLAB.
1347     return word_size > _humongous_object_threshold_in_words;
1348   }
1349 
1350   // Returns the humongous threshold for a specific region size
1351   static size_t humongous_threshold_for(size_t region_size) {
1352     return (region_size / 2);
1353   }
1354 
1355   // Returns the number of regions the humongous object of the given word size
1356   // covers.
1357   static size_t humongous_obj_size_in_regions(size_t word_size);
1358 
1359   // Update mod union table with the set of dirty cards.
1360   void updateModUnion();
1361 
1362   // Set the mod union bits corresponding to the given memRegion.  Note
1363   // that this is always a safe operation, since it doesn't clear any
1364   // bits.
1365   void markModUnionRange(MemRegion mr);
1366 
1367   // Print the maximum heap capacity.
1368   virtual size_t max_capacity() const;
1369 
1370   virtual jlong millis_since_last_gc();
1371 
1372 
1373   // Convenience function to be used in situations where the heap type can be
1374   // asserted to be this type.
1375   static G1CollectedHeap* heap();
1376 




1336   // update logging post-barrier, we don't maintain remembered set
1337   // information for young gen objects.
1338   virtual inline bool can_elide_initializing_store_barrier(oop new_obj);
1339 
1340   // Returns "true" iff the given word_size is "very large".
1341   static bool is_humongous(size_t word_size) {
1342     // Note this has to be strictly greater-than as the TLABs
1343     // are capped at the humongous threshold and we want to
1344     // ensure that we don't try to allocate a TLAB as
1345     // humongous and that we don't allocate a humongous
1346     // object in a TLAB.
1347     return word_size > _humongous_object_threshold_in_words;
1348   }
1349 
1350   // Returns the humongous threshold for a specific region size
1351   static size_t humongous_threshold_for(size_t region_size) {
1352     return (region_size / 2);
1353   }
1354 
1355   // Returns the number of regions the humongous object of the given word size
1356   // requires.
1357   static size_t humongous_obj_size_in_regions(size_t word_size);
1358 
1359   // Update mod union table with the set of dirty cards.
1360   void updateModUnion();
1361 
1362   // Set the mod union bits corresponding to the given memRegion.  Note
1363   // that this is always a safe operation, since it doesn't clear any
1364   // bits.
1365   void markModUnionRange(MemRegion mr);
1366 
1367   // Print the maximum heap capacity.
1368   virtual size_t max_capacity() const;
1369 
1370   virtual jlong millis_since_last_gc();
1371 
1372 
1373   // Convenience function to be used in situations where the heap type can be
1374   // asserted to be this type.
1375   static G1CollectedHeap* heap();
1376 


< prev index next >