Print this page


Split Split Close
Expand all
Collapse all
          --- old/src/share/vm/memory/generation.hpp
          +++ new/src/share/vm/memory/generation.hpp
↓ open down ↓ 449 lines elided ↑ open up ↑
 450  450  
 451  451    // Support for CMS's rescan. In this general form we return a pointer
 452  452    // to an abstract object that can be used, based on specific previously
 453  453    // decided protocols, to exchange information between generations,
 454  454    // information that may be useful for speeding up certain types of
 455  455    // garbage collectors. A NULL value indicates to the client that
 456  456    // no data recording is expected by the provider. The data-recorder is
 457  457    // expected to be GC worker thread-local, with the worker index
 458  458    // indicated by "thr_num".
 459  459    virtual void* get_data_recorder(int thr_num) { return NULL; }
      460 +  virtual void sample_eden_chunk() {}
 460  461  
 461  462    // Some generations may require some cleanup actions before allowing
 462  463    // a verification.
 463  464    virtual void prepare_for_verify() {};
 464  465  
 465  466    // Accessing "marks".
 466  467  
 467  468    // This function gives a generation a chance to note a point between
 468  469    // collections.  For example, a contiguous generation might note the
 469  470    // beginning allocation point post-collection, which might allow some later
↓ open down ↓ 291 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX