/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "memory/allocation.hpp"
#include "runtime/thread.hpp"
#include "services/memRecorder.hpp"
// Maximum MAX_GENERATIONS generation data can be tracked.
private:
int _number_of_classes;
public:
if (_recorder_list == NULL) {
return NULL;
} else {
return tmp;
}
}
inline bool has_more_recorder() const {
return (_recorder_list != NULL);
}
// add recorders to this generation
if (_recorder_list == NULL) {
} else {
}
}
}
void reset();
};
private:
// circular buffer. This buffer contains generation data to be merged into global
// snaphsot.
// Each slot holds a generation
bool _has_error;
public:
~MemTrackWorker();
void start();
void run();
// task at synchronization point
// for debugging purpose, they are not thread safe.
NOT_PRODUCT(int count_pending_recorders() const;)
NOT_PRODUCT(int _sync_point_count;)
NOT_PRODUCT(int _merge_count;)
NOT_PRODUCT(int _last_gen_in_use;)
// how many generations are queued
inline int generations_in_use() const {
}
};
#endif // SHARE_VM_SERVICES_MEM_TRACK_WORKER_HPP