RFR (M): 8227739: Merge cost predictions for scanning cards and log buffer entries

Thomas Schatzl thomas.schatzl at oracle.com
Thu Nov 28 11:13:58 UTC 2019


Hi,

On Wed, 2019-11-27 at 18:12 -0500, Kim Barrett wrote:
> > On Nov 20, 2019, at 10:26 AM, Thomas Schatzl <
> > thomas.schatzl at oracle.com> wrote:
> > 
> > http://cr.openjdk.java.net/~tschatzl/8227739/webrev.0_to_1/ (diff)
> > http://cr.openjdk.java.net/~tschatzl/8227739/webrev.1/ (full)
> 
> -------------------------------------------------------------------
> -----------
> src/hotspot/share/gc/g1/g1Policy.cpp
>  760    _analytics-
> >report_card_merge_to_scan_ratio(merge_to_scan_ratio,
> this_pause_was_young_only);
> 
> misindentation.
> 
> -------------------------------------------------------------------
> -----------
> src/hotspot/share/gc/g1/g1HotCardCache.hpp
>   87   bool _cache_wrapped_around;
> 
> Although always updated to the same value, it's still written by
> multiple threads, so should be "atomic" in the sense we're presently
> using, e.g. declare the variable volatile, and consider using
> Atomic::store for the write.
> 
> -------------------------------------------------------------------
> -----------

Fixed in:

http://cr.openjdk.java.net/~tschatzl/8227739/webrev.1_to_2/ (diff)
http://cr.openjdk.java.net/~tschatzl/8227739/webrev.2/ (full)

Thanks,
  Thomas

> 





More information about the hotspot-gc-dev mailing list