Mercurial > hg > truffle
comparison src/os/bsd/vm/osThread_bsd.cpp @ 4961:0368109684cb
7132070: Use a mach_port_t as the OSThread thread_id rather than pthread_t on BSD/OSX
Summary: Change OSThread to use mach thread_t
Reviewed-by: phh, dcubed
author | sla |
---|---|
date | Sun, 19 Feb 2012 13:11:39 +0100 |
parents | f08d439fab8c |
children | cd3d6a6b95d9 |
comparison
equal
deleted
inserted
replaced
4960:86ce3208eb18 | 4961:0368109684cb |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
47 #endif | 47 #endif |
48 | 48 |
49 | 49 |
50 void OSThread::pd_initialize() { | 50 void OSThread::pd_initialize() { |
51 assert(this != NULL, "check"); | 51 assert(this != NULL, "check"); |
52 #ifdef __APPLE__ | |
53 _thread_id = 0; | |
54 #else | |
52 _thread_id = NULL; | 55 _thread_id = NULL; |
56 #endif | |
53 _pthread_id = NULL; | 57 _pthread_id = NULL; |
54 _siginfo = NULL; | 58 _siginfo = NULL; |
55 _ucontext = NULL; | 59 _ucontext = NULL; |
56 _expanding_stack = 0; | 60 _expanding_stack = 0; |
57 _alt_sig_stack = NULL; | 61 _alt_sig_stack = NULL; |