comparison src/share/vm/code/nmethod.cpp @ 15161:2c940b1a48d8

Convert InstalledCode from an interface into an abstract class.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 15 Apr 2014 15:01:40 +0200
parents 169caf662ac7
children 62e218478931
comparison
equal deleted inserted replaced
15160:a47e68e146a2 15161:2c940b1a48d8
1328 #ifdef GRAAL 1328 #ifdef GRAAL
1329 // The method can only be unloaded after the pointer to the installed code 1329 // The method can only be unloaded after the pointer to the installed code
1330 // Java wrapper is no longer alive. Here we need to clear out this weak 1330 // Java wrapper is no longer alive. Here we need to clear out this weak
1331 // reference to the dead object. 1331 // reference to the dead object.
1332 if (_graal_installed_code != NULL) { 1332 if (_graal_installed_code != NULL) {
1333 HotSpotInstalledCode::set_codeBlob(_graal_installed_code, 0); 1333 InstalledCode::set_address(_graal_installed_code, 0);
1334 _graal_installed_code = NULL; 1334 _graal_installed_code = NULL;
1335 } 1335 }
1336 #endif 1336 #endif
1337 1337
1338 // Make the class unloaded - i.e., change state and notify sweeper 1338 // Make the class unloaded - i.e., change state and notify sweeper
1508 } else { 1508 } else {
1509 assert(state == not_entrant, "other cases may need to be handled differently"); 1509 assert(state == not_entrant, "other cases may need to be handled differently");
1510 } 1510 }
1511 #ifdef GRAAL 1511 #ifdef GRAAL
1512 if (_graal_installed_code != NULL) { 1512 if (_graal_installed_code != NULL) {
1513 // Break the link between nmethod and HotSpotInstalledCode such that the nmethod can subsequently be flushed safely. 1513 // Break the link between nmethod and InstalledCode such that the nmethod can subsequently be flushed safely.
1514 HotSpotInstalledCode::set_codeBlob(_graal_installed_code, 0); 1514 InstalledCode::set_address(_graal_installed_code, 0);
1515 } 1515 }
1516 #endif 1516 #endif
1517 1517
1518 if (TraceCreateZombies) { 1518 if (TraceCreateZombies) {
1519 ResourceMark m; 1519 ResourceMark m;