equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
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 |