Mercurial > hg > truffle
comparison src/os_cpu/linux_sparc/vm/vmStructs_linux_sparc.hpp @ 6093:960a442eae91
7161732: Improve handling of thread_id in OSThread
Reviewed-by: dholmes, kamg
author | rbackman |
---|---|
date | Tue, 22 May 2012 10:11:53 +0200 |
parents | f95d63e2154a |
children | 91bf7da5c609 |
comparison
equal
deleted
inserted
replaced
6082:4b37c0dafe3a | 6093:960a442eae91 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 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. |
34 /******************************/ \ | 34 /******************************/ \ |
35 /* Threads (NOTE: incomplete) */ \ | 35 /* Threads (NOTE: incomplete) */ \ |
36 /******************************/ \ | 36 /******************************/ \ |
37 \ | 37 \ |
38 nonstatic_field(JavaThread, _base_of_stack_pointer, intptr_t*) \ | 38 nonstatic_field(JavaThread, _base_of_stack_pointer, intptr_t*) \ |
39 nonstatic_field(OSThread, _thread_id, pid_t) \ | 39 nonstatic_field(OSThread, _thread_id, OSThread::thread_id_t) \ |
40 nonstatic_field(OSThread, _pthread_id, pthread_t) \ | 40 nonstatic_field(OSThread, _pthread_id, pthread_t) \ |
41 /* This must be the last entry, and must be present */ \ | 41 /* This must be the last entry, and must be present */ \ |
42 last_entry() | 42 last_entry() |
43 | 43 |
44 | 44 |
46 \ | 46 \ |
47 /**********************/ \ | 47 /**********************/ \ |
48 /* POSIX Thread IDs */ \ | 48 /* POSIX Thread IDs */ \ |
49 /**********************/ \ | 49 /**********************/ \ |
50 \ | 50 \ |
51 declare_integer_type(pid_t) \ | 51 declare_integer_type(OSThread::thread_id_t) \ |
52 declare_unsigned_integer_type(pthread_t) \ | 52 declare_unsigned_integer_type(pthread_t) \ |
53 \ | 53 \ |
54 /* This must be the last entry, and must be present */ \ | 54 /* This must be the last entry, and must be present */ \ |
55 last_entry() | 55 last_entry() |
56 | 56 |