mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6858051: Create GC worker threads dynamically
Reviewed-by: tschatzl, drwhite
This commit is contained in:
parent
af168abecc
commit
c16b4b7673
9 changed files with 196 additions and 65 deletions
|
@ -44,9 +44,6 @@ GCTaskThread::GCTaskThread(GCTaskManager* manager,
|
|||
_time_stamps(NULL),
|
||||
_time_stamp_index(0)
|
||||
{
|
||||
if (!os::create_thread(this, os::pgc_thread))
|
||||
vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create GC thread. Out of system resources.");
|
||||
|
||||
set_id(which);
|
||||
set_name("ParGC Thread#%d", which);
|
||||
}
|
||||
|
@ -57,10 +54,6 @@ GCTaskThread::~GCTaskThread() {
|
|||
}
|
||||
}
|
||||
|
||||
void GCTaskThread::start() {
|
||||
os::start_thread(this);
|
||||
}
|
||||
|
||||
GCTaskTimeStamp* GCTaskThread::time_stamp_at(uint index) {
|
||||
guarantee(index < GCTaskTimeStampEntries, "increase GCTaskTimeStampEntries");
|
||||
if (_time_stamps == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue