8253900: SA: wrong size computation when JVM was built without AOT

Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
Jose Ricardo Ziviani 2020-10-09 12:56:47 +00:00 committed by Martin Doerr
parent 2bc8bc5722
commit b1448da109
6 changed files with 25 additions and 3 deletions

View file

@ -316,6 +316,11 @@ public class InstanceKlass extends Klass {
}
public boolean hasStoredFingerprint() {
// has_stored_fingerprint() @ instanceKlass.cpp can return true only if INCLUDE_AOT is
// set during compilation.
if (!VM.getVM().hasAOT()) {
return false;
}
return shouldStoreFingerprint() || isShared();
}