mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8038286: nm->set_rtm_state() should be called after (nm != NULL) check
Move set_rtm_state() call after (nm != NULL) check Reviewed-by: iveresov, twisti
This commit is contained in:
parent
1516f610a1
commit
04e8f32451
1 changed files with 3 additions and 3 deletions
|
@ -1038,15 +1038,15 @@ void ciEnv::register_method(ciMethod* target,
|
||||||
frame_words, oop_map_set,
|
frame_words, oop_map_set,
|
||||||
handler_table, inc_table,
|
handler_table, inc_table,
|
||||||
compiler, comp_level);
|
compiler, comp_level);
|
||||||
#if INCLUDE_RTM_OPT
|
|
||||||
nm->set_rtm_state(rtm_state);
|
|
||||||
#endif
|
|
||||||
// Free codeBlobs
|
// Free codeBlobs
|
||||||
code_buffer->free_blob();
|
code_buffer->free_blob();
|
||||||
|
|
||||||
if (nm != NULL) {
|
if (nm != NULL) {
|
||||||
nm->set_has_unsafe_access(has_unsafe_access);
|
nm->set_has_unsafe_access(has_unsafe_access);
|
||||||
nm->set_has_wide_vectors(has_wide_vectors);
|
nm->set_has_wide_vectors(has_wide_vectors);
|
||||||
|
#if INCLUDE_RTM_OPT
|
||||||
|
nm->set_rtm_state(rtm_state);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Record successful registration.
|
// Record successful registration.
|
||||||
// (Put nm into the task handle *before* publishing to the Java heap.)
|
// (Put nm into the task handle *before* publishing to the Java heap.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue