Mercurial > hg > truffle
diff src/share/vm/graal/graalCompiler.cpp @ 4640:8aa283b5e173
Synchronize createHotSpotTypeResolved (should fix EscapeAnalysis NPE)
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 20 Feb 2012 12:30:58 +0100 |
parents | a7a16015e47f |
children | b5dc2403c1e7 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp Sun Feb 19 04:28:40 2012 +0100 +++ b/src/share/vm/graal/graalCompiler.cpp Mon Feb 20 12:30:58 2012 +0100 @@ -202,6 +202,8 @@ } Handle GraalCompiler::createHotSpotTypeResolved(KlassHandle klass, Handle name, TRAPS) { + ObjectLocker ol(klass, THREAD); + if (klass->graal_mirror() != NULL) { return klass->graal_mirror(); }