mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7160570: Intrinsification support for tracing framework
Reviewed-by: sla, never
This commit is contained in:
parent
70685b85af
commit
cf406f37e3
15 changed files with 182 additions and 39 deletions
|
@ -72,15 +72,18 @@
|
|||
|
||||
#ifdef _ALLBSD_SOURCE
|
||||
#ifdef __APPLE__
|
||||
static size_t thread_id_size() { return sizeof(thread_t); }
|
||||
thread_t thread_id() const {
|
||||
return _thread_id;
|
||||
}
|
||||
#else
|
||||
static size_t thread_id_size() { return sizeof(pthread_t); }
|
||||
pthread_t thread_id() const {
|
||||
return _thread_id;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
static size_t thread_id_size() { return sizeof(pid_t); }
|
||||
pid_t thread_id() const {
|
||||
return _thread_id;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue