< prev index next >

src/hotspot/share/code/compiledMethod.cpp

Print this page




  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/compiledIC.hpp"
  27 #include "code/compiledMethod.inline.hpp"
  28 #include "code/scopeDesc.hpp"
  29 #include "code/codeCache.hpp"
  30 #include "prims/methodHandles.hpp"
  31 #include "interpreter/bytecode.inline.hpp"
  32 #include "memory/resourceArea.hpp"
  33 #include "oops/method.inline.hpp"

  34 #include "runtime/mutexLocker.hpp"
  35 
  36 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, const CodeBlobLayout& layout, int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, bool caller_must_gc_arguments)
  37   : CodeBlob(name, type, layout, frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments),
  38   _method(method), _mark_for_deoptimization_status(not_marked) {
  39   init_defaults();
  40 }
  41 
  42 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, int size, int header_size, CodeBuffer* cb, int frame_complete_offset, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments)
  43   : CodeBlob(name, type, CodeBlobLayout((address) this, size, header_size, cb), cb, frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments),
  44   _method(method), _mark_for_deoptimization_status(not_marked) {
  45   init_defaults();
  46 }
  47 
  48 void CompiledMethod::init_defaults() {
  49   _has_unsafe_access          = 0;
  50   _has_method_handle_invokes  = 0;
  51   _lazy_critical_native       = 0;
  52   _has_wide_vectors           = 0;
  53   _unloading_clock            = 0;




  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/compiledIC.hpp"
  27 #include "code/compiledMethod.inline.hpp"
  28 #include "code/scopeDesc.hpp"
  29 #include "code/codeCache.hpp"
  30 #include "prims/methodHandles.hpp"
  31 #include "interpreter/bytecode.inline.hpp"
  32 #include "memory/resourceArea.hpp"
  33 #include "oops/method.inline.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/mutexLocker.hpp"
  36 
  37 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, const CodeBlobLayout& layout, int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, bool caller_must_gc_arguments)
  38   : CodeBlob(name, type, layout, frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments),
  39   _method(method), _mark_for_deoptimization_status(not_marked) {
  40   init_defaults();
  41 }
  42 
  43 CompiledMethod::CompiledMethod(Method* method, const char* name, CompilerType type, int size, int header_size, CodeBuffer* cb, int frame_complete_offset, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments)
  44   : CodeBlob(name, type, CodeBlobLayout((address) this, size, header_size, cb), cb, frame_complete_offset, frame_size, oop_maps, caller_must_gc_arguments),
  45   _method(method), _mark_for_deoptimization_status(not_marked) {
  46   init_defaults();
  47 }
  48 
  49 void CompiledMethod::init_defaults() {
  50   _has_unsafe_access          = 0;
  51   _has_method_handle_invokes  = 0;
  52   _lazy_critical_native       = 0;
  53   _has_wide_vectors           = 0;
  54   _unloading_clock            = 0;


< prev index next >