memory_locker 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/memory_locker/libc.rb +1 -1
- data/lib/memory_locker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ab9db08583b52b0d784c5d9f9cc259ca4233523cd1389be309f55339add449
|
4
|
+
data.tar.gz: 5756d015e348eb03f69e23c6c2ee214f9d9db736cb0de50a00e38bb3f81570c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d85352a114f15abd76ec140ca38a15c828a8c4cf4a21f8709db8a9a2f3b0bfd3dd686e6bc9a510b97cccb7a19ca08475fbdcc3e2ac47440fca5df7104815744c
|
7
|
+
data.tar.gz: f68c19229a9127e740a6e54cfd4fa3a2c3bb2f3faec579d8a2eb3c5456d6f0a9ac7a12ae46a3ef6c5c6d8de3f5d0960855b2e12ff07d817afecc4a8ceaf0ea1c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## [1.0.2] - 2023-07-28
|
2
|
+
|
3
|
+
- Don't load libc if already loaded in the current process
|
4
|
+
|
5
|
+
## [1.0.1] - 2023-07-28
|
6
|
+
|
7
|
+
- Update Changelog
|
8
|
+
|
9
|
+
## [1.0.0] - 2023-07-28
|
10
|
+
|
11
|
+
- Support for all c-libraries supported by FFI with automatic detection
|
12
|
+
- Use in-memory loaded c-library if possible
|
13
|
+
- Use #call on main object/class instead of #lock for easier mocking
|
14
|
+
- More meaningful exceptions
|
15
|
+
- Clear separation between high- and low-level things
|
16
|
+
- Much better tests
|
17
|
+
|
1
18
|
## [0.1.0] - 2023-07-27
|
2
19
|
|
3
20
|
- Initial release
|
data/lib/memory_locker/libc.rb
CHANGED
@@ -9,7 +9,7 @@ class MemoryLocker
|
|
9
9
|
|
10
10
|
extend FFI::Library
|
11
11
|
# Try to load already loaded libc from the current process, use system libc as a fallback
|
12
|
-
ffi_lib [FFI::CURRENT_PROCESS, FFI::Library::LIBC]
|
12
|
+
ffi_lib [FFI::CURRENT_PROCESS, FFI::Library::LIBC]
|
13
13
|
attach_function :real_mlockall, :mlockall, [:int], :int
|
14
14
|
|
15
15
|
def self.mlockall
|