hotspot/src/share/vm/oops/method.cpp
changeset 28374 0558e321c027
parent 27923 2c79bc396381
child 28650 772aaab2582f
equal deleted inserted replaced
28373:26fdc99d32f8 28374:0558e321c027
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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.
    23  */
    23  */
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "classfile/metadataOnStackMark.hpp"
    26 #include "classfile/metadataOnStackMark.hpp"
    27 #include "classfile/systemDictionary.hpp"
    27 #include "classfile/systemDictionary.hpp"
       
    28 #include "code/codeCache.hpp"
    28 #include "code/debugInfoRec.hpp"
    29 #include "code/debugInfoRec.hpp"
    29 #include "gc_interface/collectedHeap.inline.hpp"
    30 #include "gc_interface/collectedHeap.inline.hpp"
    30 #include "interpreter/bytecodeStream.hpp"
    31 #include "interpreter/bytecodeStream.hpp"
    31 #include "interpreter/bytecodeTracer.hpp"
    32 #include "interpreter/bytecodeTracer.hpp"
    32 #include "interpreter/bytecodes.hpp"
    33 #include "interpreter/bytecodes.hpp"
  1725   SystemDictionary::notice_modification();
  1726   SystemDictionary::notice_modification();
  1726   {
  1727   {
  1727     // Deoptimize all dependents on this method
  1728     // Deoptimize all dependents on this method
  1728     HandleMark hm(thread);
  1729     HandleMark hm(thread);
  1729     methodHandle mh(thread, method);
  1730     methodHandle mh(thread, method);
  1730     Universe::flush_dependents_on_method(mh);
  1731     CodeCache::flush_dependents_on_method(mh);
  1731   }
  1732   }
  1732 }
  1733 }
  1733 
  1734 
  1734 void BreakpointInfo::clear(Method* method) {
  1735 void BreakpointInfo::clear(Method* method) {
  1735   *method->bcp_from(_bci) = orig_bytecode();
  1736   *method->bcp_from(_bci) = orig_bytecode();