Mercurial > hg > truffle
comparison src/share/vm/utilities/taskqueue.cpp @ 3960:f08d439fab8c
7089790: integrate bsd-port changes
Reviewed-by: kvn, twisti, jrose
Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
author | never |
---|---|
date | Sun, 25 Sep 2011 16:03:29 -0700 |
parents | f95d63e2154a |
children | f34d701e952e |
comparison
equal
deleted
inserted
replaced
3959:eda6988c0d81 | 3960:f08d439fab8c |
---|---|
34 #ifdef TARGET_OS_FAMILY_solaris | 34 #ifdef TARGET_OS_FAMILY_solaris |
35 # include "thread_solaris.inline.hpp" | 35 # include "thread_solaris.inline.hpp" |
36 #endif | 36 #endif |
37 #ifdef TARGET_OS_FAMILY_windows | 37 #ifdef TARGET_OS_FAMILY_windows |
38 # include "thread_windows.inline.hpp" | 38 # include "thread_windows.inline.hpp" |
39 #endif | |
40 #ifdef TARGET_OS_FAMILY_bsd | |
41 # include "thread_bsd.inline.hpp" | |
39 #endif | 42 #endif |
40 | 43 |
41 #ifdef TRACESPINNING | 44 #ifdef TRACESPINNING |
42 uint ParallelTaskTerminator::_total_yields = 0; | 45 uint ParallelTaskTerminator::_total_yields = 0; |
43 uint ParallelTaskTerminator::_total_spins = 0; | 46 uint ParallelTaskTerminator::_total_spins = 0; |
272 | 275 |
273 void ParallelTaskTerminator::reset_for_reuse(int n_threads) { | 276 void ParallelTaskTerminator::reset_for_reuse(int n_threads) { |
274 reset_for_reuse(); | 277 reset_for_reuse(); |
275 _n_threads = n_threads; | 278 _n_threads = n_threads; |
276 } | 279 } |
277 |