Mercurial > hg > truffle
comparison src/share/vm/prims/methodHandleWalk.cpp @ 3750:96c891ebe56a
Merge
author | coleenp |
---|---|
date | Thu, 02 Jun 2011 21:01:48 -0700 |
parents | 5ac411b3b8fc d3b9f2be46ab |
children | cfcf2ba8f3eb |
comparison
equal
deleted
inserted
replaced
3745:a93146d0e4be | 3750:96c891ebe56a |
---|---|
1588 // Rewrite the method and set up the constant pool cache. | 1588 // Rewrite the method and set up the constant pool cache. |
1589 objArrayOop m_array = oopFactory::new_system_objArray(1, CHECK_(empty)); | 1589 objArrayOop m_array = oopFactory::new_system_objArray(1, CHECK_(empty)); |
1590 objArrayHandle methods(THREAD, m_array); | 1590 objArrayHandle methods(THREAD, m_array); |
1591 methods->obj_at_put(0, m()); | 1591 methods->obj_at_put(0, m()); |
1592 Rewriter::rewrite(_target_klass(), cpool, methods, CHECK_(empty)); // Use fake class. | 1592 Rewriter::rewrite(_target_klass(), cpool, methods, CHECK_(empty)); // Use fake class. |
1593 Rewriter::relocate_and_link(_target_klass(), methods, CHECK_(empty)); // Use fake class. | |
1593 | 1594 |
1594 // Set the invocation counter's count to the invoke count of the | 1595 // Set the invocation counter's count to the invoke count of the |
1595 // original call site. | 1596 // original call site. |
1596 InvocationCounter* ic = m->invocation_counter(); | 1597 InvocationCounter* ic = m->invocation_counter(); |
1597 ic->set(InvocationCounter::wait_for_compile, _invoke_count); | 1598 ic->set(InvocationCounter::wait_for_compile, _invoke_count); |