--- a/src/hotspot/share/runtime/thread.cpp Thu Feb 28 13:37:03 2019 +0800
+++ b/src/hotspot/share/runtime/thread.cpp Fri Sep 07 07:52:35 2018 +0200
@@ -106,6 +106,8 @@
#include "services/attachListener.hpp"
#include "services/management.hpp"
#include "services/memTracker.hpp"
+// SapMachine 2019-02-20 : stathist
+#include "services/stathist.hpp"
#include "services/threadService.hpp"
#include "utilities/align.hpp"
#include "utilities/copy.hpp"
@@ -4001,6 +4003,11 @@
StatSampler::engage();
if (CheckJNICalls) JniPeriodicChecker::engage();
+ // SapMachine 2019-02-20 : stathist
+ if (EnableStatHist) {
+ StatisticsHistory::initialize();
+ }
+
BiasedLocking::init();
#if INCLUDE_RTM_OPT
@@ -4433,6 +4440,10 @@
p->set_on_thread_list();
_number_of_threads++;
+
+ // SapMachine 2019-02-20 : stathist
+ StatisticsHistory::counters::inc_threads_created(1);
+
oop threadObj = p->threadObj();
bool daemon = true;
// Bootstrapping problem: threadObj can be null for initial