[Bug 161] New: incorrect memory free macros in class loader memory manager

[email protected] Tue, 6 Dec 2005 10:41:29 -0500
Newsgroups gmane.comp.java.vm.sablevm.bugs
Message-ID <[email protected]>
http://sablevm.org/bugs/show_bug.cgi?id=161

           Summary: incorrect memory free macros in class loader memory
                    manager
           Product: SableVM
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


The error is in cl_alloc.m4.h file. It does not generate correct macros for all
the memory free macros. The "env" argument is missing from the calls in the
macro defintions. The result is that function calls in cl_alloc.h do not match
the functions defined in the cl_alloc.c file making it impossible to use any of
the memory free macros for any class loader memory manager.

exemple:

in cl_alloc.h:
#define _svmm_cl_zmfree_exception_table(cli, n, ptr) \
_svmh_cl_zmfree_exception_table (cli, n, &ptr)

in cl_alloc.c:
svm_static void SVM_UNUSED
_svmh_cl_zmfree_exception_table (_svmt_JNIEnv * env,
		    _svmt_class_loader_info * class_loader_info, 
                     size_t nmemb,
		    _svmt_exception_table ** ptr)
{
  size_t size = nmemb * sizeof (_svmt_exception_table);
  _svmf_cl_free (env, class_loader_info, size, (void **) ptr);
}



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.