RFR (S) 8244326: Shenandoah: global statistics should not accept bogus samples
    Aleksey Shipilev 
    shade at redhat.com
       
    Tue May  5 09:19:41 UTC 2020
    
    
  
On 5/5/20 11:16 AM, Roman Kennke wrote:
> Why not declare uninitialized a const field?
Wanted to maintain the symmetry against ShenandoahWorkerData::uninitialized(), which is
WorkerDataArray<T>::uninitialized() in disguise:
template <>
size_t WorkerDataArray<size_t>::uninitialized() {
  return (size_t)-1;
}
template <>
double WorkerDataArray<double>::uninitialized() {
  return -1.0;
}
-- 
Thanks,
-Aleksey
    
    
More information about the hotspot-gc-dev
mailing list