Invention Grant
- Patent Title: Automatically enabling a read-only cache in a language in which two arrays in two different variables may alias each other
-
Application No.: US14946902Application Date: 2015-11-20
-
Publication No.: US09824419B2Publication Date: 2017-11-21
- Inventor: Kazuaki Ishizaki
- Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Tutunjian & Bitetto, P.C.
- Agent Vazken Alexanian
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06T1/60 ; G06F12/0875

Abstract:
A method and system are provided for executing, by a processor including a read-only cache, a program having a plurality of variables including a first variable and a second variable. Each variable is for executing a respective read operation or a respective write operation for an object. The method includes providing a first code that uses the read-only cache and a second code that does not use the read-only cache. The method further includes determining, by the processor, whether a first object designated by the first variable is aliased or not aliased with a second object designated by the second variable. The method also includes executing, by the processor, the first code when the first object is not aliased with the second object, and the second code when the first object is aliased with the second object.
Public/Granted literature
Information query