Optimizing accesses to read-mostly volatile variables
a volatile variable and access optimization technology, applied in the field of memory devices, can solve the problems of large overhead on the power platform, variable needs to be volatile, and the overhead of the memory fence affects the performance of the computer
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Benefits of technology
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016]The present invention is directed to optimizing accesses to read-mostly volatile variables. As used herein, the term “read-mostly volatile variables” refers to volatile variables that are read from more than they are written to (reads from >writes to), hence the descriptor “read-mostly”.
[0017]In an embodiment, the present invention eliminates memory fences for reading read-mostly volatile variables by only modifying them during a Stop-The-World (STW) period of a stop-the-world garbage collector. A STW garbage collector completely halts execution of a computer program to run a collection cycle, thus guaranteeing that new objects are not allocated, and objects do not suddenly become unreachable while the STW garbage collector is running. An advantage of STW Garbage Collection (GC) is that it is both simpler to implement and faster than incremental garbage collection.
[0018]Hence, in an embodiment, the present invention lets STW GC update the read-mostly volatile variables, so tha...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


