src/hotspot/share/gc/z/zCPU.cpp
changeset 58125 9b4717ca9bd1
parent 50525 767cdb97f103
child 58709 662d9e1e2a60
equal deleted inserted replaced
58124:dc792fa77da0 58125:9b4717ca9bd1
    31 
    31 
    32 #define ZCPU_UNKNOWN_AFFINITY (Thread*)-1;
    32 #define ZCPU_UNKNOWN_AFFINITY (Thread*)-1;
    33 #define ZCPU_UNKNOWN_SELF     (Thread*)-2;
    33 #define ZCPU_UNKNOWN_SELF     (Thread*)-2;
    34 
    34 
    35 PaddedEnd<ZCPU::ZCPUAffinity>* ZCPU::_affinity = NULL;
    35 PaddedEnd<ZCPU::ZCPUAffinity>* ZCPU::_affinity = NULL;
    36 __thread Thread*  ZCPU::_self                  = ZCPU_UNKNOWN_SELF;
    36 THREAD_LOCAL Thread*           ZCPU::_self     = ZCPU_UNKNOWN_SELF;
    37 __thread uint32_t ZCPU::_cpu                   = 0;
    37 THREAD_LOCAL uint32_t          ZCPU::_cpu      = 0;
    38 
    38 
    39 void ZCPU::initialize() {
    39 void ZCPU::initialize() {
    40   assert(_affinity == NULL, "Already initialized");
    40   assert(_affinity == NULL, "Already initialized");
    41   const uint32_t ncpus = count();
    41   const uint32_t ncpus = count();
    42 
    42