hotspot/src/share/vm/c1/c1_Compilation.cpp
changeset 8322 8f11ba61239f
parent 7722 f0bd3dd3192f
child 10508 233d2e7c462d
equal deleted inserted replaced
8321:a416df5e4dad 8322:8f11ba61239f
     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);