Memory is continuously allocated and de-allocated in Java virtual machine while a Java program is executed. Different object needs different amount of heap memory and it causes a serious memory fragmentation problem. Java stack memory also suffers fro...
Memory is continuously allocated and de-allocated in Java virtual machine while a Java program is executed. Different object needs different amount of heap memory and it causes a serious memory fragmentation problem. Java stack memory also suffers from external memory fragmentation because Different method requires different amount of memory for stack frame, too. One of the most promising way to cope with this problem is to use a fixed-size memory allocation scheme for both the heap memory and the Java stack memory. This paper presents a real implementation of fixed-size memory allocation scheme applied to an embedded Java virtual machine. The experimental result says that the scheme enhances memory utilization up to 30 percents than the conventional variable-size memory allocation scheme.