hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp
changeset 28374 0558e321c027
parent 28365 ccf31849c7a4
child 28734 a7ef74a8eca2
equal deleted inserted replaced
28373:26fdc99d32f8 28374:0558e321c027
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2015, 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.
  3764   assert_locked_or_safepoint(Compile_lock);
  3764   assert_locked_or_safepoint(Compile_lock);
  3765 
  3765 
  3766   // All dependencies have been recorded from startup or this is a second or
  3766   // All dependencies have been recorded from startup or this is a second or
  3767   // subsequent use of RedefineClasses
  3767   // subsequent use of RedefineClasses
  3768   if (JvmtiExport::all_dependencies_are_recorded()) {
  3768   if (JvmtiExport::all_dependencies_are_recorded()) {
  3769     Universe::flush_evol_dependents_on(k_h);
  3769     CodeCache::flush_evol_dependents_on(k_h);
  3770   } else {
  3770   } else {
  3771     CodeCache::mark_all_nmethods_for_deoptimization();
  3771     CodeCache::mark_all_nmethods_for_deoptimization();
  3772 
  3772 
  3773     ResourceMark rm(THREAD);
  3773     ResourceMark rm(THREAD);
  3774     DeoptimizationMarker dm;
  3774     DeoptimizationMarker dm;