JDK-4910535 : -XX:-UseThreadPriorities does not totally disable priority setting
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2003-08-21
  • Updated: 2003-11-05
  • Resolved: 2003-11-05
Related Reports
Duplicate :  
Relates :  
Description
The -XX:-UseThreadPriorities flag does not totally disable priority setting.  The java app's threads are still running below "normal" Solaris priority.

Comments
EVALUATION This problem has been corrected in the Tiger 1.5 JDK. There is a workaround that can eliminate the problem therefore I don't belive it is necessary to backport this fix to 1.4.2. The workaround is to create a hotspot option file that contains the following flag settings. This will not eliminate the call to set thread priorities buit will cause the priorities to always be set to the highest priority. Use the following switches: -XX:-UseThreadPriorities -XX:JavaPriority1_To_OSPriority=127 -XX:JavaPriority2_To_OSPriority=127 ..... -XX:JavaPriority10_To_OSPriority=127 ###@###.### 2003-11-05
05-11-2003