< prev index next >

src/hotspot/cpu/ppc/vm_version_ext_ppc.cpp

Print this page
rev 56859 : 8233787: Break cycle in vm_version* includes
Reviewed-by:


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "jvm.h"
  26 #include "memory/allocation.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "runtime/vm_version.hpp"
  29 #include "vm_version_ext_ppc.hpp"
  30 
  31 // VM_Version_Ext statics
  32 int   VM_Version_Ext::_no_of_threads = 0;
  33 int   VM_Version_Ext::_no_of_cores = 0;
  34 int   VM_Version_Ext::_no_of_sockets = 0;
  35 bool  VM_Version_Ext::_initialized = false;
  36 char  VM_Version_Ext::_cpu_name[CPU_TYPE_DESC_BUF_SIZE] = {0};
  37 char  VM_Version_Ext::_cpu_desc[CPU_DETAILED_DESC_BUF_SIZE] = {0};
  38 
  39 // get cpu information.
  40 void VM_Version_Ext::initialize_cpu_information(void) {
  41   // do nothing if cpu info has been initialized
  42   if (_initialized) {
  43     return;
  44   }
  45 
  46   _no_of_cores  = os::processor_count();
  47   _no_of_threads = _no_of_cores;
  48   _no_of_sockets = _no_of_cores;




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "jvm.h"
  26 #include "memory/allocation.hpp"
  27 #include "memory/allocation.inline.hpp"

  28 #include "vm_version_ext_ppc.hpp"
  29 
  30 // VM_Version_Ext statics
  31 int   VM_Version_Ext::_no_of_threads = 0;
  32 int   VM_Version_Ext::_no_of_cores = 0;
  33 int   VM_Version_Ext::_no_of_sockets = 0;
  34 bool  VM_Version_Ext::_initialized = false;
  35 char  VM_Version_Ext::_cpu_name[CPU_TYPE_DESC_BUF_SIZE] = {0};
  36 char  VM_Version_Ext::_cpu_desc[CPU_DETAILED_DESC_BUF_SIZE] = {0};
  37 
  38 // get cpu information.
  39 void VM_Version_Ext::initialize_cpu_information(void) {
  40   // do nothing if cpu info has been initialized
  41   if (_initialized) {
  42     return;
  43   }
  44 
  45   _no_of_cores  = os::processor_count();
  46   _no_of_threads = _no_of_cores;
  47   _no_of_sockets = _no_of_cores;


< prev index next >