comparison src/os_cpu/linux_x86/vm/vmStructs_linux_x86.hpp @ 3361: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
2:9259c534d452 3:fb70515ba186
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.
32 #define VM_STRUCTS_OS_CPU(nonstatic_field, static_field, unchecked_nonstatic_field, volatile_nonstatic_field, nonproduct_nonstatic_field, c2_nonstatic_field, unchecked_c1_static_field, unchecked_c2_static_field, last_entry) \ 32 #define VM_STRUCTS_OS_CPU(nonstatic_field, static_field, unchecked_nonstatic_field, volatile_nonstatic_field, nonproduct_nonstatic_field, c2_nonstatic_field, unchecked_c1_static_field, unchecked_c2_static_field, last_entry) \
33 \ 33 \
34 /******************************/ \ 34 /******************************/ \
35 /* Threads (NOTE: incomplete) */ \ 35 /* Threads (NOTE: incomplete) */ \
36 /******************************/ \ 36 /******************************/ \
37 nonstatic_field(OSThread, _thread_id, pid_t) \ 37 nonstatic_field(OSThread, _thread_id, OSThread::thread_id_t) \
38 nonstatic_field(OSThread, _pthread_id, pthread_t) \ 38 nonstatic_field(OSThread, _pthread_id, pthread_t) \
39 /* This must be the last entry, and must be present */ \ 39 /* This must be the last entry, and must be present */ \
40 last_entry() 40 last_entry()
41 41
42 42
44 \ 44 \
45 /**********************/ \ 45 /**********************/ \
46 /* Posix Thread IDs */ \ 46 /* Posix Thread IDs */ \
47 /**********************/ \ 47 /**********************/ \
48 \ 48 \
49 declare_integer_type(pid_t) \ 49 declare_integer_type(OSThread::thread_id_t) \
50 declare_unsigned_integer_type(pthread_t) \ 50 declare_unsigned_integer_type(pthread_t) \
51 \ 51 \
52 /* This must be the last entry, and must be present */ \ 52 /* This must be the last entry, and must be present */ \
53 last_entry() 53 last_entry()
54 54