src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp Thu Jan 19 13:25:54 2012
--- new/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp Thu Jan 19 13:25:49 2012
*** 73,86 ****
--- 73,91 ----
_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);
+ // 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