hotspot/src/share/vm/runtime/safepoint.cpp
changeset 24096 6f7e28b293fb
parent 24094 5dbf1f44de18
parent 23865 ba4aeedb2a9f
child 24426 0a69c8cdfca9
child 24351 61b33cc6d3cf
equal deleted inserted replaced
24095:5a5cf6765809 24096:6f7e28b293fb
     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 ++ ;