Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.hpp @ 4970:33df1aeaebbf
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 27 Feb 2012 13:10:13 +0100 |
parents | 716a2c5c0656 aa3d708d67c4 |
children | 957c266d8bc5 |
comparison
equal
deleted
inserted
replaced
4703:2cfb7fb2dce7 | 4970:33df1aeaebbf |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2012, 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. |
96 void set_next(CompileTask* next) { _next = next; } | 96 void set_next(CompileTask* next) { _next = next; } |
97 CompileTask* prev() const { return _prev; } | 97 CompileTask* prev() const { return _prev; } |
98 void set_prev(CompileTask* prev) { _prev = prev; } | 98 void set_prev(CompileTask* prev) { _prev = prev; } |
99 | 99 |
100 private: | 100 private: |
101 static void print_compilation_impl(outputStream* st, methodOop method, int compile_id, int comp_level, bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false, const char* msg = NULL); | 101 static void print_compilation_impl(outputStream* st, methodOop method, int compile_id, int comp_level, |
102 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false, | |
103 const char* msg = NULL, bool short_form = false); | |
102 | 104 |
103 public: | 105 public: |
104 void print_compilation(outputStream* st = tty); | 106 void print_compilation(outputStream* st = tty, bool short_form = false); |
105 static void print_compilation(outputStream* st, const nmethod* nm, const char* msg = NULL) { | 107 static void print_compilation(outputStream* st, const nmethod* nm, const char* msg = NULL) { |
106 print_compilation_impl(st, nm->method(), nm->compile_id(), nm->comp_level(), nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false, msg); | 108 print_compilation_impl(st, nm->method(), nm->compile_id(), nm->comp_level(), |
109 nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false, | |
110 msg); | |
107 } | 111 } |
108 | 112 |
109 static void print_inlining(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg = NULL); | 113 static void print_inlining(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg = NULL); |
110 static void print_inlining(ciMethod* method, int inline_level, int bci, const char* msg = NULL) { | 114 static void print_inlining(ciMethod* method, int inline_level, int bci, const char* msg = NULL) { |
111 print_inlining(tty, method, inline_level, bci, msg); | 115 print_inlining(tty, method, inline_level, bci, msg); |
331 int osr_bci, | 335 int osr_bci, |
332 int comp_level, | 336 int comp_level, |
333 methodHandle hot_method, | 337 methodHandle hot_method, |
334 int hot_count, | 338 int hot_count, |
335 const char* comment, | 339 const char* comment, |
336 TRAPS); | 340 Thread* thread); |
337 static CompileQueue* compile_queue(int comp_level) { | 341 static CompileQueue* compile_queue(int comp_level) { |
338 if (is_c2_compile(comp_level)) return _c2_method_queue; | 342 if (is_c2_compile(comp_level)) return _c2_method_queue; |
339 if (is_c1_compile(comp_level)) return _c1_method_queue; | 343 if (is_c1_compile(comp_level)) return _c1_method_queue; |
340 return NULL; | 344 return NULL; |
341 } | 345 } |
361 static nmethod* compile_method(methodHandle method, | 365 static nmethod* compile_method(methodHandle method, |
362 int osr_bci, | 366 int osr_bci, |
363 int comp_level, | 367 int comp_level, |
364 methodHandle hot_method, | 368 methodHandle hot_method, |
365 int hot_count, | 369 int hot_count, |
366 const char* comment, TRAPS); | 370 const char* comment, Thread* thread); |
367 | 371 |
368 static void compiler_thread_loop(); | 372 static void compiler_thread_loop(); |
369 | 373 |
370 static uint get_compilation_id() { return _compilation_id; } | 374 static uint get_compilation_id() { return _compilation_id; } |
371 static bool is_idle(); | 375 static bool is_idle(); |