hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 43605 07baf498d588
parent 42633 0c23e9d8fccf
child 46331 e3017116b9e5
equal deleted inserted replaced
43604:49949d36e3f9 43605:07baf498d588
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  3048 
  3048 
  3049 void os::naked_yield() {
  3049 void os::naked_yield() {
  3050   thr_yield();
  3050   thr_yield();
  3051 }
  3051 }
  3052 
  3052 
  3053 // Interface for setting lwp priorities.  If we are using T2 libthread,
  3053 // Interface for setting lwp priorities.  We are using T2 libthread,
  3054 // which forces the use of BoundThreads or we manually set UseBoundThreads,
  3054 // which forces the use of bound threads, so all of our threads will
  3055 // all of our threads will be assigned to real lwp's.  Using the thr_setprio
  3055 // be assigned to real lwp's.  Using the thr_setprio function is
  3056 // function is meaningless in this mode so we must adjust the real lwp's priority
  3056 // meaningless in this mode so we must adjust the real lwp's priority.
  3057 // The routines below implement the getting and setting of lwp priorities.
  3057 // The routines below implement the getting and setting of lwp priorities.
  3058 //
       
  3059 // Note: T2 is now the only supported libthread. UseBoundThreads flag is
       
  3060 //       being deprecated and all threads are now BoundThreads
       
  3061 //
  3058 //
  3062 // Note: There are three priority scales used on Solaris.  Java priotities
  3059 // Note: There are three priority scales used on Solaris.  Java priotities
  3063 //       which range from 1 to 10, libthread "thr_setprio" scale which range
  3060 //       which range from 1 to 10, libthread "thr_setprio" scale which range
  3064 //       from 0 to 127, and the current scheduling class of the process we
  3061 //       from 0 to 127, and the current scheduling class of the process we
  3065 //       are running in.  This is typically from -60 to +60.
  3062 //       are running in.  This is typically from -60 to +60.