equal
deleted
inserted
replaced
104 #include "runtime/vmOperations.hpp" |
104 #include "runtime/vmOperations.hpp" |
105 #include "runtime/vm_version.hpp" |
105 #include "runtime/vm_version.hpp" |
106 #include "services/attachListener.hpp" |
106 #include "services/attachListener.hpp" |
107 #include "services/management.hpp" |
107 #include "services/management.hpp" |
108 #include "services/memTracker.hpp" |
108 #include "services/memTracker.hpp" |
|
109 // SapMachine 2019-02-20 : stathist |
|
110 #include "services/stathist.hpp" |
109 #include "services/threadService.hpp" |
111 #include "services/threadService.hpp" |
110 #include "utilities/align.hpp" |
112 #include "utilities/align.hpp" |
111 #include "utilities/copy.hpp" |
113 #include "utilities/copy.hpp" |
112 #include "utilities/defaultStream.hpp" |
114 #include "utilities/defaultStream.hpp" |
113 #include "utilities/dtrace.hpp" |
115 #include "utilities/dtrace.hpp" |
3999 |
4001 |
4000 if (MemProfiling) MemProfiler::engage(); |
4002 if (MemProfiling) MemProfiler::engage(); |
4001 StatSampler::engage(); |
4003 StatSampler::engage(); |
4002 if (CheckJNICalls) JniPeriodicChecker::engage(); |
4004 if (CheckJNICalls) JniPeriodicChecker::engage(); |
4003 |
4005 |
|
4006 // SapMachine 2019-02-20 : stathist |
|
4007 if (EnableStatHist) { |
|
4008 StatisticsHistory::initialize(); |
|
4009 } |
|
4010 |
4004 BiasedLocking::init(); |
4011 BiasedLocking::init(); |
4005 |
4012 |
4006 #if INCLUDE_RTM_OPT |
4013 #if INCLUDE_RTM_OPT |
4007 RTMLockingCounters::init(); |
4014 RTMLockingCounters::init(); |
4008 #endif |
4015 #endif |
4431 // Once a JavaThread is added to the Threads list, smr_delete() has |
4438 // Once a JavaThread is added to the Threads list, smr_delete() has |
4432 // to be used to delete it. Otherwise we can just delete it directly. |
4439 // to be used to delete it. Otherwise we can just delete it directly. |
4433 p->set_on_thread_list(); |
4440 p->set_on_thread_list(); |
4434 |
4441 |
4435 _number_of_threads++; |
4442 _number_of_threads++; |
|
4443 |
|
4444 // SapMachine 2019-02-20 : stathist |
|
4445 StatisticsHistory::counters::inc_threads_created(1); |
|
4446 |
4436 oop threadObj = p->threadObj(); |
4447 oop threadObj = p->threadObj(); |
4437 bool daemon = true; |
4448 bool daemon = true; |
4438 // Bootstrapping problem: threadObj can be null for initial |
4449 // Bootstrapping problem: threadObj can be null for initial |
4439 // JavaThread (or for threads attached via JNI) |
4450 // JavaThread (or for threads attached via JNI) |
4440 if ((!force_daemon) && !is_daemon((threadObj))) { |
4451 if ((!force_daemon) && !is_daemon((threadObj))) { |