Rewriting bytecode
Keith McGuigan
Keith.McGuigan at Sun.COM
Thu Sep 3 14:33:28 PDT 2009
Nagy Mostafa wrote:
> I saw some code in "relocator.cpp" for bytecode re-writing and was
> wondering if that should do the trick. I looked at
> "Relocator::insert_space_at()" which I think expands the size of an
> instruction and adjusts the method layout accordingly. I suppose I can
> use that and expand the first instruction enough to have enough space to
> rewrite my code. I still need of course to fix the exception table
> manually. Does that sound like a good idea ? Do I still need to adjust
> the linenumber table if i am not doing any debugging ?
Yeah it's worth a shot, I'd think. I wouldn't worry about the
linenumber table except that the debugger uses it.
--
- Keith
More information about the hotspot-dev
mailing list