src/os/bsd/vm/osThread_bsd.cpp

Print this page
rev 3115 : [mq]: osx-threadid

*** 1,7 **** /* ! * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 47,57 **** --- 47,61 ---- #endif void OSThread::pd_initialize() { assert(this != NULL, "check"); + #ifdef __APPLE__ + _thread_id = 0; + #else _thread_id = NULL; + #endif _pthread_id = NULL; _siginfo = NULL; _ucontext = NULL; _expanding_stack = 0; _alt_sig_stack = NULL;