equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, 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. |
317 SpinPause() ; // MP-Polite spin |
317 SpinPause() ; // MP-Polite spin |
318 } else |
318 } else |
319 if (steps < DeferThrSuspendLoopCount) { |
319 if (steps < DeferThrSuspendLoopCount) { |
320 os::NakedYield() ; |
320 os::NakedYield() ; |
321 } else { |
321 } else { |
322 os::yield_all(steps) ; |
322 os::yield_all() ; |
323 // Alternately, the VM thread could transiently depress its scheduling priority or |
323 // Alternately, the VM thread could transiently depress its scheduling priority or |
324 // transiently increase the priority of the tardy mutator(s). |
324 // transiently increase the priority of the tardy mutator(s). |
325 } |
325 } |
326 |
326 |
327 iterations ++ ; |
327 iterations ++ ; |