11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "code/codeCache.hpp"
27 #include "memory/resourceArea.hpp"
28 #include "runtime/deoptimization.hpp"
29 #include "runtime/flags/jvmFlag.hpp"
30 #include "runtime/vmThread.hpp"
31 #include "runtime/vm_operations.hpp"
32 #include "services/dtraceAttacher.hpp"
33
34 #ifdef SOLARIS
35
36 class VM_DeoptimizeTheWorld : public VM_Operation {
37 public:
38 VMOp_Type type() const {
39 return VMOp_DeoptimizeTheWorld;
40 }
41 void doit() {
42 CodeCache::mark_all_nmethods_for_deoptimization();
43 ResourceMark rm;
44 DeoptimizationMarker dm;
45 // Deoptimize all activations depending on marked methods
46 Deoptimization::deoptimize_dependents();
47
48 // Mark the dependent methods non entrant
49 CodeCache::make_marked_nmethods_not_entrant();
50 }
51 };
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "code/codeCache.hpp"
27 #include "memory/resourceArea.hpp"
28 #include "runtime/deoptimization.hpp"
29 #include "runtime/flags/jvmFlag.hpp"
30 #include "runtime/vmThread.hpp"
31 #include "runtime/vmOperations.hpp"
32 #include "services/dtraceAttacher.hpp"
33
34 #ifdef SOLARIS
35
36 class VM_DeoptimizeTheWorld : public VM_Operation {
37 public:
38 VMOp_Type type() const {
39 return VMOp_DeoptimizeTheWorld;
40 }
41 void doit() {
42 CodeCache::mark_all_nmethods_for_deoptimization();
43 ResourceMark rm;
44 DeoptimizationMarker dm;
45 // Deoptimize all activations depending on marked methods
46 Deoptimization::deoptimize_dependents();
47
48 // Mark the dependent methods non entrant
49 CodeCache::make_marked_nmethods_not_entrant();
50 }
51 };
|