Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/nmethod.cpp @ 13230:01080e31692d
fixed crash when TraceCreateZombies is enabled
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 03 Dec 2013 16:35:41 +0100 |
parents | f9f4503a4ab5 |
children | 02f27ecb4f3a |
comparison
equal
deleted
inserted
replaced
13229:325b4e4efb60 | 13230:01080e31692d |
---|---|
1521 set_method(NULL); | 1521 set_method(NULL); |
1522 } else { | 1522 } else { |
1523 assert(state == not_entrant, "other cases may need to be handled differently"); | 1523 assert(state == not_entrant, "other cases may need to be handled differently"); |
1524 } | 1524 } |
1525 #ifdef GRAAL | 1525 #ifdef GRAAL |
1526 if (_graal_installed_code != NULL) { | 1526 if (_graal_installed_code != NULL) { |
1527 // Break the link between nmethod and HotSpotInstalledCode such that the nmethod can subsequently be flushed safely. | 1527 // Break the link between nmethod and HotSpotInstalledCode such that the nmethod can subsequently be flushed safely. |
1528 HotSpotInstalledCode::set_codeBlob(_graal_installed_code, 0); | 1528 HotSpotInstalledCode::set_codeBlob(_graal_installed_code, 0); |
1529 } | 1529 } |
1530 #endif | 1530 #endif |
1531 | 1531 |
1532 if (TraceCreateZombies) { | 1532 if (TraceCreateZombies) { |
1533 ResourceMark m; | 1533 ResourceMark m; |
1534 tty->print_cr("nmethod <" INTPTR_FORMAT "> %s code made %s", this, this->method()->name_and_sig_as_C_string(), (state == not_entrant) ? "not entrant" : "zombie"); | 1534 tty->print_cr("nmethod <" INTPTR_FORMAT "> %s code made %s", this, this->method() ? this->method()->name_and_sig_as_C_string() : "null", (state == not_entrant) ? "not entrant" : "zombie"); |
1535 } | 1535 } |
1536 | 1536 |
1537 NMethodSweeper::report_state_change(this); | 1537 NMethodSweeper::report_state_change(this); |
1538 return true; | 1538 return true; |
1539 } | 1539 } |