src/os/bsd/vm/osThread_bsd.cpp

Print this page
rev 3111 : imported patch osx-threadid

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
+ * 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,11 +47,11 @@
 #endif
 
 
 void OSThread::pd_initialize() {
   assert(this != NULL, "check");
-  _thread_id        = NULL;
+  _thread_id        = 0;
   _pthread_id       = NULL;
   _siginfo = NULL;
   _ucontext = NULL;
   _expanding_stack = 0;
   _alt_sig_stack = NULL;