ShadowySpirits commented on code in PR #6507:
URL: https://github.com/apache/rocketmq/pull/6507#discussion_r1192099476
##########
store/src/main/java/org/apache/rocketmq/store/util/LibC.java:
##########
@@ -50,4 +52,8 @@ public interface LibC extends Library {
int mlockall(int flags);
int msync(Pointer p, NativeLong length, int flags);
+
+ int mincore(Pointer p, NativeLong length, byte[] vec);
Review Comment:
In addition, there is already an `isLoaded` method in the MappedFile
interface:
```java
/**
* Check mapped file is loaded to memory with given position and size
* @param position start offset of data
* @param size data size
* @return data is resided in memory or not
*/
boolean isLoaded(long position, int size);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]