diff src/os/bsd/vm/osThread_bsd.hpp @ 6006:0105f367a14c

7160570: Intrinsification support for tracing framework Reviewed-by: sla, never
author rbackman
date Tue, 06 Mar 2012 12:36:59 +0100
parents 0368109684cb
children 960a442eae91
line wrap: on
line diff
--- a/src/os/bsd/vm/osThread_bsd.hpp	Sun Apr 15 15:37:20 2012 -0700
+++ b/src/os/bsd/vm/osThread_bsd.hpp	Tue Mar 06 12:36:59 2012 +0100
@@ -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;
   }