While the relocator is running if it adds bytecodes, foreach one it adds it creates a new methodOop and drops references to the old one expecting permgen collection to clean things up.
See Relocator::insert_space_at()
This is used by the rewriter if jsr bytecodes are found to resolve the ambiguity with jsr/ret. It is also used by RedefineClasses in the case where an ldc index exceeds a byte due to method rewriting.
We might have to allocate Methods in CHeap memory and copy them to permgen as one of the the last link steps.
See Relocator::insert_space_at()
This is used by the rewriter if jsr bytecodes are found to resolve the ambiguity with jsr/ret. It is also used by RedefineClasses in the case where an ldc index exceeds a byte due to method rewriting.
We might have to allocate Methods in CHeap memory and copy them to permgen as one of the the last link steps.
- duplicates
-
JDK-6964458 Reimplement class meta-data storage to use native memory
-
- Resolved
-