src/share/vm/interpreter/rewriter.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
6893268 Cdiff src/share/vm/interpreter/rewriter.cpp
src/share/vm/interpreter/rewriter.cpp
Print this page
rev 1021 : 6858164: invokedynamic code needs some cleanup (post-6655638)
Note: The bug ID for this change set was erroneously used to call for review of 6815692.
Summary: Fix several crashers, remove needless paths for boxed-style bootstrap method call, refactor & simplify APIs for rewriter constantPoolOop, remove sun.dyn.CallSiteImpl
Reviewed-by: ?
rev 1026 : imported patch indy.compiler.inline.patch
*** 245,263 ****
}
void Rewriter::rewrite(instanceKlassHandle klass, TRAPS) {
ResourceMark rm(THREAD);
! Rewriter rw(klass, CHECK);
// (That's all, folks.)
}
! Rewriter::Rewriter(instanceKlassHandle klass, TRAPS)
: _klass(klass),
! // gather starting points
! _pool( THREAD, klass->constants()),
! _methods(THREAD, klass->methods())
{
assert(_pool->cache() == NULL, "constant pool cache must not be set yet");
// determine index maps for methodOop rewriting
compute_index_maps();
--- 245,270 ----
}
void Rewriter::rewrite(instanceKlassHandle klass, TRAPS) {
ResourceMark rm(THREAD);
! Rewriter rw(klass, klass->constants(), klass->methods(), CHECK);
// (That's all, folks.)
}
!
! void Rewriter::rewrite(instanceKlassHandle klass, constantPoolHandle cpool, objArrayHandle methods, TRAPS) {
! ResourceMark rm(THREAD);
! Rewriter rw(klass, cpool, methods, CHECK);
! // (That's all, folks.)
! }
!
!
! Rewriter::Rewriter(instanceKlassHandle klass, constantPoolHandle cpool, objArrayHandle methods, TRAPS)
: _klass(klass),
! _pool(cpool),
! _methods(methods)
{
assert(_pool->cache() == NULL, "constant pool cache must not be set yet");
// determine index maps for methodOop rewriting
compute_index_maps();
src/share/vm/interpreter/rewriter.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File