Mercurial > hg > graal-compiler
diff src/os/solaris/vm/thread_solaris.inline.hpp @ 21626:ca3c6538bcec
JVMCI update makefiles for Solaris/SPARC; os::read at early stage of VM does not work, use ::read as fallback in JVMCIRuntime::parse_lines (JBS:GRAAL-54)
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 01 Jun 2015 14:17:05 +0200 |
parents | c49dcaf78a65 |
children |
line wrap: on
line diff
--- a/src/os/solaris/vm/thread_solaris.inline.hpp Mon Jun 01 13:19:48 2015 +0200 +++ b/src/os/solaris/vm/thread_solaris.inline.hpp Mon Jun 01 14:17:05 2015 +0200 @@ -47,7 +47,7 @@ uintptr_t raw = pd_raw_thread_id(); int ix = pd_cache_index(raw); Thread* candidate = ThreadLocalStorage::_get_thread_cache[ix]; - if (candidate->self_raw_id() == raw) { + if (candidate != NULL && candidate->self_raw_id() == raw) { // hit return candidate; } else {