< prev index next >
src/share/vm/prims/jvmtiClassFileReconstituter.hpp
Print this page
*** 32,46 ****
private:
int _cpool_size;
SymbolHashMap* _symmap;
SymbolHashMap* _classmap;
constantPoolHandle _cpool;
! instanceKlassHandle _ikh;
jvmtiError _err;
protected:
! instanceKlassHandle ikh() { return _ikh; };
constantPoolHandle cpool() { return _cpool; };
u2 symbol_to_cpool_index(Symbol* sym) {
return _symmap->symbol_to_value(sym);
}
--- 32,46 ----
private:
int _cpool_size;
SymbolHashMap* _symmap;
SymbolHashMap* _classmap;
constantPoolHandle _cpool;
! InstanceKlass* _ik;
jvmtiError _err;
protected:
! InstanceKlass* ik() { return _ik; };
constantPoolHandle cpool() { return _cpool; };
u2 symbol_to_cpool_index(Symbol* sym) {
return _symmap->symbol_to_value(sym);
}
*** 50,63 ****
}
public:
// Calls to this constructor must be proceeded by a ResourceMark
// and a HandleMark
! JvmtiConstantPoolReconstituter(instanceKlassHandle ikh){
set_error(JVMTI_ERROR_NONE);
! _ikh = ikh;
! _cpool = constantPoolHandle(Thread::current(), ikh->constants());
_symmap = new SymbolHashMap();
_classmap = new SymbolHashMap();
_cpool_size = _cpool->hash_entries_to(_symmap, _classmap);
if (_cpool_size == 0) {
set_error(JVMTI_ERROR_OUT_OF_MEMORY);
--- 50,63 ----
}
public:
// Calls to this constructor must be proceeded by a ResourceMark
// and a HandleMark
! JvmtiConstantPoolReconstituter(InstanceKlass* ik){
set_error(JVMTI_ERROR_NONE);
! _ik = ik;
! _cpool = constantPoolHandle(Thread::current(), ik->constants());
_symmap = new SymbolHashMap();
_classmap = new SymbolHashMap();
_cpool_size = _cpool->hash_entries_to(_symmap, _classmap);
if (_cpool_size == 0) {
set_error(JVMTI_ERROR_OUT_OF_MEMORY);
*** 136,147 ****
void write_u8(u8 x);
public:
// Calls to this constructor must be proceeded by a ResourceMark
// and a HandleMark
! JvmtiClassFileReconstituter(instanceKlassHandle ikh) :
! JvmtiConstantPoolReconstituter(ikh) {
_buffer_size = initial_buffer_size;
_buffer = _buffer_ptr = NEW_RESOURCE_ARRAY(u1, _buffer_size);
_thread = Thread::current();
write_class_file_format();
};
--- 136,147 ----
void write_u8(u8 x);
public:
// Calls to this constructor must be proceeded by a ResourceMark
// and a HandleMark
! JvmtiClassFileReconstituter(InstanceKlass* ik) :
! JvmtiConstantPoolReconstituter(ik) {
_buffer_size = initial_buffer_size;
_buffer = _buffer_ptr = NEW_RESOURCE_ARRAY(u1, _buffer_size);
_thread = Thread::current();
write_class_file_format();
};
< prev index next >