发明名称 |
Sharing applications in a java virtual machine |
摘要 |
Disclosed are various embodiments for executing multiple applications in a single virtual machine. The classes of an application executing in the virtual machine are traversed to identify non-sharable static fields. Upon identifying a non-sharable static field, mapping data is created that corresponds to the non-sharable static field. During another traversal of the classes of the application, access to the identified non-sharable static field is translated into an access to the mapping data that is associated with the non-sharable static field. |
申请公布号 |
US9639381(B2) |
申请公布日期 |
2017.05.02 |
申请号 |
US201514729479 |
申请日期 |
2015.06.03 |
申请人 |
AMAZON TECHNOLOGIES, INC. |
发明人 |
O'Neill Brian S.;Trahan Matthew L.;Chakravarthy Diwakar |
分类号 |
G06F9/44;G06F9/445;G06F9/455 |
主分类号 |
G06F9/44 |
代理机构 |
Thomas | Horstemeyer, LLP |
代理人 |
Thomas | Horstemeyer, LLP |
主权项 |
1. A non-transitory computer-readable medium embodying a program executable in at least one computing device, wherein, when executed, the program causes the at least one computing device to at least:
conduct a first traversal of a class loader dependency graph corresponding to a plurality of classes of an application; during the first traversal of the class loader dependency graph,
identify a non-sharable static field within the plurality of classes; andcreate mapping data for the application in response to identifying the non-sharable static field, the mapping data including data corresponding to an instance of the non-sharable static field; conduct a second traversal of the class loader dependency graph corresponding to the plurality of classes following completion of the first traversal; and translate, during the second traversal, an access to the non-sharable static field within the plurality of classes into a translated access to the instance of the non-sharable static field in the mapping data. |
地址 |
Seattle WA US |