src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
hotspot-rt-fx60 Cdiff src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp
Print this page
*** 73,86 ****
_collector = collector;
set_name("Concurrent Mark-Sweep GC Thread");
if (os::create_thread(this, os::cgc_thread)) {
! // XXX: need to set this to low priority
! // unless "agressive mode" set; priority
! // should be just less than that of VMThread.
! os::set_priority(this, NearMaxPriority);
if (!DisableStartThread) {
os::start_thread(this);
}
}
_sltMonitor = SLT_lock;
--- 73,91 ----
_collector = collector;
set_name("Concurrent Mark-Sweep GC Thread");
if (os::create_thread(this, os::cgc_thread)) {
! // Priority should be just less than that of VMThread.
! int native_prio;
! if (UseCriticalCMSThreadPriority) {
! native_prio = os::java_to_os_priority[CriticalPriority];
! } else {
! native_prio = os::java_to_os_priority[NearMaxPriority];
! }
! os::set_native_priority(this, native_prio);
!
if (!DisableStartThread) {
os::start_thread(this);
}
}
_sltMonitor = SLT_lock;
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File