src/share/vm/gc/shared/plab.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -163,10 +163,14 @@
_unused = 0;
}
virtual void log_plab_allocation();
virtual void log_sizing(size_t calculated, size_t net_desired);
+
+ // helper for adjust_desired_plab_sz().
+ virtual size_t compute_desired_plab_sz();
+
public:
PLABStats(const char* description, size_t desired_net_plab_sz_, unsigned wt) :
_description(description),
_allocated(0),
_wasted(0),
@@ -195,11 +199,11 @@
// Calculates plab size for current number of gc worker threads.
size_t desired_plab_sz(uint no_of_gc_workers);
// Updates the current desired PLAB size. Computes the new desired PLAB size with one gc worker thread,
// updates _desired_plab_sz and clears sensor accumulators.
- virtual void adjust_desired_plab_sz();
+ void adjust_desired_plab_sz();
inline void add_allocated(size_t v);
inline void add_unused(size_t v);