hotspot/src/share/vm/runtime/relocator.hpp
changeset 7397 5b173b4ca846
parent 6974 a013f1c533a5
child 7913 dd096a83bdbb
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2010, 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.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
       
    24 
       
    25 #ifndef SHARE_VM_RUNTIME_RELOCATOR_HPP
       
    26 #define SHARE_VM_RUNTIME_RELOCATOR_HPP
       
    27 
       
    28 #include "interpreter/bytecodes.hpp"
       
    29 #include "oops/methodOop.hpp"
       
    30 #ifdef TARGET_ARCH_x86
       
    31 # include "bytes_x86.hpp"
       
    32 #endif
       
    33 #ifdef TARGET_ARCH_sparc
       
    34 # include "bytes_sparc.hpp"
       
    35 #endif
       
    36 #ifdef TARGET_ARCH_zero
       
    37 # include "bytes_zero.hpp"
       
    38 #endif
    24 
    39 
    25 // This code has been converted from the 1.1E java virtual machine
    40 // This code has been converted from the 1.1E java virtual machine
    26 // Thanks to the JavaTopics group for using the code
    41 // Thanks to the JavaTopics group for using the code
    27 
    42 
    28 class ChangeItem;
    43 class ChangeItem;
   115   void notify(int bci, int delta, int new_code_length) {
   130   void notify(int bci, int delta, int new_code_length) {
   116     if (_listener != NULL)
   131     if (_listener != NULL)
   117       _listener->relocated(bci, delta, new_code_length);
   132       _listener->relocated(bci, delta, new_code_length);
   118   }
   133   }
   119 };
   134 };
       
   135 
       
   136 #endif // SHARE_VM_RUNTIME_RELOCATOR_HPP