src/os/solaris/vm/thread_solaris.inline.hpp

changeset 2423
b1a2afa37ec4
parent 2314
f95d63e2154a
child 4299
f34d701e952e
     1.1 --- a/src/os/solaris/vm/thread_solaris.inline.hpp	Fri Jan 07 03:38:19 2011 -0800
     1.2 +++ b/src/os/solaris/vm/thread_solaris.inline.hpp	Fri Jan 07 10:42:32 2011 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -53,10 +53,10 @@
    1.11  
    1.12    uintptr_t raw = pd_raw_thread_id();
    1.13    int ix = pd_cache_index(raw);
    1.14 -  Thread *Candidate = ThreadLocalStorage::_get_thread_cache[ix];
    1.15 -  if (Candidate->_self_raw_id == raw) {
    1.16 +  Thread* candidate = ThreadLocalStorage::_get_thread_cache[ix];
    1.17 +  if (candidate->self_raw_id() == raw) {
    1.18      // hit
    1.19 -    return Candidate;
    1.20 +    return candidate;
    1.21    } else {
    1.22      return ThreadLocalStorage::get_thread_via_cache_slowly(raw, ix);
    1.23    }

mercurial