equal
deleted
inserted
replaced
70 task->set_code(NULL); |
70 task->set_code(NULL); |
71 assert(!task->lock()->is_locked(), "Should not be locked when freed"); |
71 assert(!task->lock()->is_locked(), "Should not be locked when freed"); |
72 JNIHandles::destroy_global(task->_method_holder); |
72 JNIHandles::destroy_global(task->_method_holder); |
73 JNIHandles::destroy_global(task->_hot_method_holder); |
73 JNIHandles::destroy_global(task->_hot_method_holder); |
74 |
74 |
|
75 if (task->_failure_reason_on_C_heap && task->_failure_reason != NULL) { |
|
76 os::free((void*) task->_failure_reason); |
|
77 } |
|
78 task->_failure_reason = NULL; |
|
79 task->_failure_reason_on_C_heap = false; |
|
80 |
75 task->set_is_free(true); |
81 task->set_is_free(true); |
76 task->set_next(_task_free_list); |
82 task->set_next(_task_free_list); |
77 _task_free_list = task; |
83 _task_free_list = task; |
78 } |
84 } |
79 } |
85 } |
108 _hot_method_holder = NULL; |
114 _hot_method_holder = NULL; |
109 _hot_count = hot_count; |
115 _hot_count = hot_count; |
110 _time_queued = 0; // tidy |
116 _time_queued = 0; // tidy |
111 _compile_reason = compile_reason; |
117 _compile_reason = compile_reason; |
112 _failure_reason = NULL; |
118 _failure_reason = NULL; |
|
119 _failure_reason_on_C_heap = false; |
113 |
120 |
114 if (LogCompilation) { |
121 if (LogCompilation) { |
115 _time_queued = os::elapsed_counter(); |
122 _time_queued = os::elapsed_counter(); |
116 if (hot_method.not_null()) { |
123 if (hot_method.not_null()) { |
117 if (hot_method == method) { |
124 if (hot_method == method) { |