Global constant pool to allow deletion of constant pool entries
    6.
    发明授权
    Global constant pool to allow deletion of constant pool entries 有权
    全局常量池,允许删除常量池条目

    公开(公告)号:US07240341B2

    公开(公告)日:2007-07-03

    申请号:US10203123

    申请日:2001-02-07

    IPC分类号: G06F9/45 G06F9/44

    CPC分类号: G06F9/44563

    摘要: A method and apparatus for reducing runtime memory requirements of a virtual machine. The invention involves analyzing object code compiled from source code. The object code includes at least two load-units that each contain a load-unit specific constant pool. Each load-unit is analyzed to determine which constants are actual constants and then those actual constants are analyzed to determine where commonality exists among the load-units. If a constant is determined to be redundant it is rewritten to a global constant pool. The references to the constant in the load-unit specific constant pool are rewritten to point to the value in the global constant pool. The memory allocated to the constant in the individual load-unit is then reallocated, either by a programmed routine or by memory management tools.

    摘要翻译: 一种用于减少虚拟机的运行时存储器需求的方法和装置。 本发明涉及分析从源代码编译的目标代码。 目标代码包括至少两个负载单元,每个负载单元都包含一个负载单元特定的常量池。 分析每个负载单元以确定哪些常数是实际常数,然后分析那些实际常数以确定负载单元之间共同点存在的位置。 如果常数被确定为冗余,则将其重写为全局常量池。 对加载单元特定常量池中常量的引用将重写为全局常量池中的值。 然后,通过编程程序或内存管理工具重新分配分配给各个加载单元中常量的内存。