src/share/vm/memory/universe.cpp

changeset 5726
69f26e8e09f9
parent 5578
4c84d351cca9
child 5737
da051ce490eb
     1.1 --- a/src/share/vm/memory/universe.cpp	Fri Sep 13 04:16:54 2013 -0700
     1.2 +++ b/src/share/vm/memory/universe.cpp	Fri Sep 13 16:55:44 2013 -0700
     1.3 @@ -602,7 +602,7 @@
     1.4    }
     1.5  }
     1.6  
     1.7 -static intptr_t non_oop_bits = 0;
     1.8 +intptr_t Universe::_non_oop_bits = 0;
     1.9  
    1.10  void* Universe::non_oop_word() {
    1.11    // Neither the high bits nor the low bits of this value is allowed
    1.12 @@ -616,11 +616,11 @@
    1.13    // Using the OS-supplied non-memory-address word (usually 0 or -1)
    1.14    // will take care of the high bits, however many there are.
    1.15  
    1.16 -  if (non_oop_bits == 0) {
    1.17 -    non_oop_bits = (intptr_t)os::non_memory_address_word() | 1;
    1.18 +  if (_non_oop_bits == 0) {
    1.19 +    _non_oop_bits = (intptr_t)os::non_memory_address_word() | 1;
    1.20    }
    1.21  
    1.22 -  return (void*)non_oop_bits;
    1.23 +  return (void*)_non_oop_bits;
    1.24  }
    1.25  
    1.26  jint universe_init() {

mercurial