equal
deleted
inserted
replaced
200 |
200 |
201 // Load the bytecodes. |
201 // Load the bytecodes. |
202 _code = (address)arena->Amalloc(code_size()); |
202 _code = (address)arena->Amalloc(code_size()); |
203 memcpy(_code, me->code_base(), code_size()); |
203 memcpy(_code, me->code_base(), code_size()); |
204 |
204 |
|
205 #if INCLUDE_JVMTI |
205 // Revert any breakpoint bytecodes in ci's copy |
206 // Revert any breakpoint bytecodes in ci's copy |
206 if (me->number_of_breakpoints() > 0) { |
207 if (me->number_of_breakpoints() > 0) { |
207 BreakpointInfo* bp = me->method_holder()->breakpoints(); |
208 BreakpointInfo* bp = me->method_holder()->breakpoints(); |
208 for (; bp != NULL; bp = bp->next()) { |
209 for (; bp != NULL; bp = bp->next()) { |
209 if (bp->match(me)) { |
210 if (bp->match(me)) { |
210 code_at_put(bp->bci(), bp->orig_bytecode()); |
211 code_at_put(bp->bci(), bp->orig_bytecode()); |
211 } |
212 } |
212 } |
213 } |
213 } |
214 } |
|
215 #endif |
214 |
216 |
215 // And load the exception table. |
217 // And load the exception table. |
216 ExceptionTable exc_table(me); |
218 ExceptionTable exc_table(me); |
217 |
219 |
218 // Allocate one extra spot in our list of exceptions. This |
220 // Allocate one extra spot in our list of exceptions. This |