MCPcopy Create free account
hub / github.com/catboost/catboost / IsPageInCore

Function IsPageInCore

util/system/mincore.h:32–38  ·  view source on GitHub ↗

* Takes as an argument an element of the vector previously filled by InCoreMemory. * * @param[in] byte corresponding to the status of a single page * * @returns true if this page was resident in memory at the time out the InCoreMemory execution */

Source from the content-addressed store, hash-verified

30 * @returns true if this page was resident in memory at the time out the InCoreMemory execution
31 */
32inline bool IsPageInCore(unsigned char s) {
33 /* From mincore(2): On return, the least significant bit of each byte will be set if the corresponding page is
34 * currently resident in memory, and be clear otherwise. (The settings of the other bits in each byte are
35 * undefined; these bits are reserved for possible later use.)
36 */
37 return s & 1;
38}

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected