Patent ID: 9430403
Filing Date: 2016-08-30
CPC Classification: G06F

Claim Text:
1. A method for optimizing usage of system memory, comprising the steps of: determining, by a computer, whether a page boundary of a first page has been crossed by a function, wherein the determining whether the first page boundary of a page has been crossed by the function comprises determining whether the function is executing an instruction that involves at least one of: referencing a second page, and writing to a second page, wherein the reference bit, when set, indicates that the first page has been referenced; and wherein the change bit, when set, indicates that the first page has been written to; based on the determining that the page boundary has been crossed by the function, generating, by the computer, a hardware exception, wherein the generating the hardware exception comprises transferring, by the computer, control of execution to an exception handler; and based on the computer generating the hardware exception, resetting, by the computer, one or more of the change bit and the reference bit for the first page, wherein resetting the change bit and the reference bit prevents the first page from being swapped out of the system memory.