equal
deleted
inserted
replaced
1060 } |
1060 } |
1061 |
1061 |
1062 |
1062 |
1063 /** |
1063 /** |
1064 * Set the methods on the stack as on_stack so that redefine classes doesn't |
1064 * Set the methods on the stack as on_stack so that redefine classes doesn't |
1065 * reclaim them |
1065 * reclaim them. This method is executed at a safepoint. |
1066 */ |
1066 */ |
1067 void CompileBroker::mark_on_stack() { |
1067 void CompileBroker::mark_on_stack() { |
|
1068 assert(SafepointSynchronize::is_at_safepoint(), "sanity check"); |
|
1069 // Since we are at a safepoint, we do not need a lock to access |
|
1070 // the compile queues. |
1068 if (_c2_compile_queue != NULL) { |
1071 if (_c2_compile_queue != NULL) { |
1069 MutexLocker locker(_c2_compile_queue->lock()); |
|
1070 _c2_compile_queue->mark_on_stack(); |
1072 _c2_compile_queue->mark_on_stack(); |
1071 } |
1073 } |
1072 if (_c1_compile_queue != NULL) { |
1074 if (_c1_compile_queue != NULL) { |
1073 MutexLocker locker(_c1_compile_queue->lock()); |
|
1074 _c1_compile_queue->mark_on_stack(); |
1075 _c1_compile_queue->mark_on_stack(); |
1075 } |
1076 } |
1076 } |
1077 } |
1077 |
1078 |
1078 // ------------------------------------------------------------------ |
1079 // ------------------------------------------------------------------ |