This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/JVMTI] Implement GetLocalVariableTable and GetMaxLocals


Keith Seitz wrote:

> Kyle> + int get_local_var_table (char **name, char **sig, char **generic_sig,
> Kyle> + long *startloc, jint *length, jint *slot,
> Kyle> + int table_slot)
> Kyle> + *name = reinterpret_cast<char *>
> Kyle> + (_Jv_AllocBytes (strlen (local_var_table[table_slot].name) + 1));

Of course, your original concern about the use of _Jv_AllocBytes is still warranted: It should be using _Jv_MallocUnchecked, just like _Jv_JVMTI_Allocate.


I was simply responding to your original question about how the memory gets released. I apologize for any confusion.

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]