equal
deleted
inserted
replaced
277 BCI_MODE_EMCP = 0, |
277 BCI_MODE_EMCP = 0, |
278 BCI_MODE_CALL = 1, |
278 BCI_MODE_CALL = 1, |
279 BCI_MODE_ALLOC = 2 |
279 BCI_MODE_ALLOC = 2 |
280 }; |
280 }; |
281 |
281 |
282 #ifdef __cplusplus |
|
283 extern "C" { |
282 extern "C" { |
284 #endif |
|
285 |
283 |
286 /** |
284 /** |
287 * Class file transformer. Transforms a classfile image from old_bytes |
285 * Class file transformer. Transforms a classfile image from old_bytes |
288 * to a new classfile image new_bytes according to value of bci_mode. |
286 * to a new classfile image new_bytes according to value of bci_mode. |
289 * The new classfile image is allocated with malloc(), and should be |
287 * The new classfile image is allocated with malloc(), and should be |
303 */ |
301 */ |
304 |
302 |
305 int Inject(const u1* old_bytes, const jint old_length, |
303 int Inject(const u1* old_bytes, const jint old_length, |
306 u1** new_bytes, jint* new_length, int bci_mode); |
304 u1** new_bytes, jint* new_length, int bci_mode); |
307 |
305 |
308 #ifdef __cplusplus |
|
309 } |
306 } |
310 #endif |
|
311 |
307 |
312 #endif /* _NSK_SHARE_JVMTI_INJECTOR_H_ */ |
308 #endif /* _NSK_SHARE_JVMTI_INJECTOR_H_ */ |