摘要 |
PURPOSE: A method for allocating a memory region based on the size of a Java object and apparatus for the same are provided to significantly reduce allocation overhead, promotion overhead, and system latency overhead, thereby reducing unnecessary garbage collection load. CONSTITUTION: If memory allocation for a first Java object is requested, then the first Java object is assigned to a heap region corresponding to the size of the first Java object among heap regions preset in advance by being classified for each object size. If the size of the first Java object is equal to or bigger than 30 Kbytes, the first Java object is assigned to a heap region corresponding to an old region among the heap regions. If the size of the first Java object is equal to or smaller than 256 bytes, the first Java object is assigned to a heap region corresponding to a fast region among the heap regions.
|