hotspot/src/share/vm/runtime/deoptimization.hpp
changeset 46727 6e4a84748e2c
parent 46542 73dd19b96b5d
child 46998 efb404beeefb
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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.
   415 
   415 
   416   // Preserves incoming arguments to the popped frame when it is
   416   // Preserves incoming arguments to the popped frame when it is
   417   // returning to a deoptimized caller
   417   // returning to a deoptimized caller
   418   static void popframe_preserve_args(JavaThread* thread, int bytes_to_save, void* start_address);
   418   static void popframe_preserve_args(JavaThread* thread, int bytes_to_save, void* start_address);
   419 
   419 
   420   static MethodData* get_method_data(JavaThread* thread, methodHandle m, bool create_if_missing);
   420   static MethodData* get_method_data(JavaThread* thread, const methodHandle& m, bool create_if_missing);
   421  private:
   421  private:
   422   // Update the mdo's count and per-BCI reason bits, returning previous state:
   422   // Update the mdo's count and per-BCI reason bits, returning previous state:
   423   static ProfileData* query_update_method_data(MethodData* trap_mdo,
   423   static ProfileData* query_update_method_data(MethodData* trap_mdo,
   424                                                int trap_bci,
   424                                                int trap_bci,
   425                                                DeoptReason reason,
   425                                                DeoptReason reason,