Mercurial > hg > graal-compiler
comparison src/share/vm/c1/c1_Compilation.cpp @ 2252:72d6c57d0658
7017434: Tiered needs to support reprofiling
Summary: Tiered needs to support proper method reprofiling after deopts.
Reviewed-by: kvn
author | iveresov |
---|---|
date | Wed, 09 Feb 2011 16:34:34 -0800 |
parents | 2f9d59b0fa5c |
children | c124e2e7463e |
comparison
equal
deleted
inserted
replaced
2251:336d17dff7cc | 2252:72d6c57d0658 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2011, 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. |
489 if (is_profiling()) { | 489 if (is_profiling()) { |
490 // Compilation failed, create MDO, which would signal the interpreter | 490 // Compilation failed, create MDO, which would signal the interpreter |
491 // to start profiling on its own. | 491 // to start profiling on its own. |
492 _method->ensure_method_data(); | 492 _method->ensure_method_data(); |
493 } | 493 } |
494 } else if (is_profiling() && _would_profile) { | 494 } else if (is_profiling()) { |
495 ciMethodData *md = method->method_data_or_null(); | 495 ciMethodData *md = method->method_data_or_null(); |
496 assert(md != NULL, "Sanity"); | 496 if (md != NULL) { |
497 md->set_would_profile(_would_profile); | 497 md->set_would_profile(_would_profile); |
498 } | |
498 } | 499 } |
499 } | 500 } |
500 | 501 |
501 Compilation::~Compilation() { | 502 Compilation::~Compilation() { |
502 _env->set_compiler_data(NULL); | 503 _env->set_compiler_data(NULL); |