Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/deoptimization.cpp @ 9571:f0ef8f58a1d9
Use root method for deopt reason collecting if possible in non-graalvm
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 06 May 2013 15:25:18 +0200 |
parents | 314814fa0223 |
children | 836a62f43af9 |
comparison
equal
deleted
inserted
replaced
9570:314814fa0223 | 9571:f0ef8f58a1d9 |
---|---|
1343 | 1343 |
1344 // Ensure that we can record deopt. history: | 1344 // Ensure that we can record deopt. history: |
1345 bool create_if_missing = ProfileTraps; | 1345 bool create_if_missing = ProfileTraps; |
1346 | 1346 |
1347 methodHandle profiled_method; | 1347 methodHandle profiled_method; |
1348 #ifdef GRAALVM | 1348 #ifdef GRAAL |
1349 profiled_method = nm->method(); | 1349 if (nm->is_compiled_by_graal()) { |
1350 profiled_method = nm->method(); | |
1351 } else { | |
1352 profiled_method = trap_method; | |
1353 } | |
1350 #else | 1354 #else |
1351 profiled_method = trap_method; | 1355 profiled_method = trap_method; |
1352 #endif | 1356 #endif |
1353 | 1357 |
1354 MethodData* trap_mdo = | 1358 MethodData* trap_mdo = |