equal
deleted
inserted
replaced
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); |